Skip to content

Commit

Permalink
fix: Change default preg_split() flags parameter to the default `-1…
Browse files Browse the repository at this point in the history
…` to further address the platform error in ([#1561](#1561))
  • Loading branch information
khalwat committed Jan 9, 2025
1 parent 986bd62 commit 6ed5473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/UrlHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ public static function getSiteUrlOverrideSetting(?int $siteId = null): string
*/
public static function encodeUrl(string $url): string
{
$parts = preg_split('/([:\/?#\[\]@!$&\'()*+,;=%])/', $url, null, PREG_SPLIT_DELIM_CAPTURE);
$parts = preg_split('/([:\/?#\[\]@!$&\'()*+,;=%])/', $url, -1, PREG_SPLIT_DELIM_CAPTURE);
$url = '';
foreach ($parts as $i => $part) {
if ($i % 2 === 0) {
Expand Down

0 comments on commit 6ed5473

Please sign in to comment.