1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 15:47:00 +02:00

Escape : also in remove_from_param

This commit is contained in:
Jakub Vrana
2020-05-11 12:35:19 +02:00
parent ac40be998d
commit 4e2a448e28
4 changed files with 5 additions and 3 deletions

View File

@@ -725,7 +725,7 @@ function format_time($start) {
* @return string
*/
function relative_uri() {
return preg_replace('~^[^?]*/([^?]*)~', '\1', $_SERVER["REQUEST_URI"]);
return str_replace(":", "%3a", preg_replace('~^[^?]*/([^?]*)~', '\1', $_SERVER["REQUEST_URI"]));
}
/** Remove parameter from query string