Page MenuHomeDevCentral

D1170.diff
No OneTemporary

D1170.diff

diff --git a/includes/core.php b/includes/core.php
--- a/includes/core.php
+++ b/includes/core.php
@@ -305,8 +305,10 @@
// (a working could be $document_root/index.php?$query_string);
$url = array_key_exists('REDIRECT_URL', $_SERVER) ? $_SERVER["REDIRECT_URL"] : $_SERVER["REQUEST_URI"];
$url = substr(get_server_url() . $url, $len);
- if ($_SERVER['QUERY_STRING']) {
- return substr($url, 0, strlen($url) - strlen($_SERVER['QUERY_STRING']) - 1);
+
+ $pos = strpos($url, '?');
+ if ($pos !== false) {
+ return substr($url, 0, $pos);
}
return $url;
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 19, 15:22 (19 h, 34 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2306525
Default Alt Text
D1170.diff (605 B)

Event Timeline