Fix localize_path with custom protocol identifiers

This commit is contained in:
Gilles Roudière
2022-10-20 14:12:25 +02:00
parent 61051a44cc
commit 56fa8f1d58
2 changed files with 18 additions and 3 deletions
+1 -1
View File
@@ -3675,7 +3675,7 @@ String String::simplify_path() const {
if (p > 0) {
bool only_chars = true;
for (int i = 0; i < p; i++) {
if (!is_ascii_char(s[i])) {
if (!is_ascii_alphanumeric_char(s[i])) {
only_chars = false;
break;
}