Skip to content

Commit 0719b67

Browse files
authored
Merge pull request #1107 from freost/fix-php85-deprecation-error
Fix PHP 8.5 deprecation
2 parents 8608e9c + 63ff2e0 commit 0719b67

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Util/UrlEncoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public static function unescapeAndEncode(string $uri): string
5656
}
5757
}
5858

59-
if (\ord($code) < 128) {
59+
if (\strlen($code) === 1 && \ord($code) < 128) {
6060
$result .= self::ENCODE_CACHE[\ord($code)];
6161
continue;
6262
}

0 commit comments

Comments
 (0)