1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Change escaping function to build URL for searching

Fixes GH-518.
Closes GH-519.
This commit is contained in:
Kazuya Takei
2022-05-30 22:43:58 +09:00
committed by GitHub
parent 5263a54413
commit 438c8baa34

View File

@@ -360,7 +360,7 @@
dropdown.append(searchTemplate.render({
pattern: pattern,
url: "/search.php?pattern=" + escape(pattern)
url: "/search.php?pattern=" + encodeURIComponent(pattern)
}));
/* If the dropdown is hidden (because there are no