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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user