Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3908546
D1170.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
605 B
Referenced Files
None
Subscribers
None
D1170.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D1170: Handle correctly QUERY_STRING when it's different from REQUEST_URI
Attached
Detach File
Event Timeline
Log In to Comment