Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15530028
D20227.id48287.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
710 B
Referenced Files
None
Subscribers
None
D20227.id48287.diff
View Options
diff --git a/src/aphront/AphrontRequest.php b/src/aphront/AphrontRequest.php
--- a/src/aphront/AphrontRequest.php
+++ b/src/aphront/AphrontRequest.php
@@ -591,15 +591,11 @@
}
public function getRequestURI() {
- $request_uri = idx($_SERVER, 'REQUEST_URI', '/');
+ $uri_path = phutil_escape_uri($this->getPath());
+ $uri_query = idx($_SERVER, 'QUERY_STRING', '');
- $uri = new PhutilURI($request_uri);
- $uri->removeQueryParam('__path__');
-
- $path = phutil_escape_uri($this->getPath());
- $uri->setPath($path);
-
- return $uri;
+ return id(new PhutilURI($uri_path.'?'.$uri_query))
+ ->removeQueryParam('__path__');
}
public function getAbsoluteRequestURI() {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Apr 24, 12:50 AM (1 d, 11 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712251
Default Alt Text
D20227.id48287.diff (710 B)
Attached To
Mode
D20227: Use "QUERY_STRING", not "REQUEST_URI", to parse raw request parameters
Attached
Detach File
Event Timeline
Log In to Comment