-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(http): Use Symfony to parse PATH_INFO #10618
Conversation
engine/classes/Elgg/Application.php
Outdated
} | ||
} | ||
$req = Request::createFromGlobals(); | ||
$_GET[self::GET_PATH_KEY] = $req->getPathInfo(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming here that Request::createFromGlobals
handles CLI server, it looks like it should.
6225130
to
3209cf4
Compare
3209cf4
to
511adbb
Compare
#10609 should go in 2.3, I'll move this to master. |
511adbb
to
3bf034d
Compare
f2ed222
to
ccb5101
Compare
Anything holding this back? |
ccb5101
to
cbb60ce
Compare
cbb60ce
to
43dbe96
Compare
@@ -76,6 +76,5 @@ server { | |||
include /etc/nginx/fastcgi_params; | |||
fastcgi_param SCRIPT_FILENAME $document_root/index.php; | |||
fastcgi_param SCRIPT_NAME /index.php; | |||
fastcgi_param QUERY_STRING __elgg_uri=$uri&$args; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've not tested this removal
Anyone else wanna test it? |
We should add Travis jobs for both apache and ngnix perhaps |
@Elgg/core I'm merging this Apr 10 if no objections. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if travis passes, i approve
Instead of having Apache rewrite the path into a query string argument, we use Symfony's battle-tested `Request::getPathInfo`. Fixes Elgg#10608
Instead of having Apache rewrite the path into a query string argument, we use Symfony's battle-tested
Request::getPathInfo
.Fixes #10608