-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Harden files drop #2471
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
Harden files drop #2471
Conversation
* Fail on MKCOL * Only take filename ignore directories * No need to parse query parameters Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
|
@rullzer, thanks for your PR! By analyzing the history of the files in this pull request, we identified @SergioBertolinSG, @LukasReschke and @MorrisJobke to be potential reviewers. |
.htaccess
Outdated
| #### DO NOT CHANGE ANYTHING ABOVE THIS LINE #### | ||
|
|
||
| ErrorDocument 403 //core/templates/403.php | ||
| ErrorDocument 404 //core/templates/404.php |
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.
🙈
|
|
||
| try { | ||
| $this->response = $client->send($client->createRequest("PUT", $fullUrl, $options)); | ||
| var_dump($fullUrl); |
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.
Debug leftovers :)
| } | ||
|
|
||
| $base = substr($this->baseUrl, 0, -4); | ||
| $fullUrl = $base . '/public.php/webdav/' . $folder . '?XDEBUG_SESSION_START=1'; |
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.
XDEBUG_SESSION_START?
|
|
||
| try { | ||
| $this->response = $client->send($client->createRequest("POST", $fullUrl, $options)); | ||
| $this->response = $client->send($client->createRequest("POST", $fullUrl . '?XDEBUG_SESSION_START=1', $options)); |
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.
X_DEBUG_SESSION_START?
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
0491669 to
2de0992
Compare
|
Fixes #2083 |
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
|
I fixed the tests - you need to install the instance before running integration tests ;) |
|
I tested the files drop feature and it still works 👍 |
|
Aaaah copied the wrong intergration test as example :P |
LukasReschke
left a comment
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.
Works nicely! Thanks, @rullzer! 🚀
|
LGTM |
@LukasReschke as discussed.
Fixes #2083