Skip to content

Commit

Permalink
[10.x] Fixes cache:prune-stale-tags preg_match delimiter no escaped (l…
Browse files Browse the repository at this point in the history
…aravel#48702)

When redis prefix has / delimiter will not escaped. The preg_match will  Unknown modifier Exception
  • Loading branch information
ame1973 authored and timacdonald committed Oct 24, 2023
1 parent 54d7b38 commit 86f0f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Cache/RedisStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ protected function currentTags($chunkSize = 1000)
yield $tag;
}
} while (((string) $cursor) !== $defaultCursorValue);
})->map(fn (string $tagKey) => Str::match('/^'.preg_quote($prefix).'tag:(.*):entries$/', $tagKey));
})->map(fn (string $tagKey) => Str::match('/^'.preg_quote($prefix, '/').'tag:(.*):entries$/', $tagKey));
}

/**
Expand Down

0 comments on commit 86f0f49

Please sign in to comment.