mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Also disallow ; in remote urls
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
5e402f8aae
commit
609b8aff12
2 changed files with 2 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ class ExternalSharesController extends Controller {
|
|||
* @return DataResponse
|
||||
*/
|
||||
public function testRemote($remote) {
|
||||
if (strpos($remote, '#') !== false || strpos($remote, '?') !== false) {
|
||||
if (strpos($remote, '#') !== false || strpos($remote, '?') !== false || strpos($remote, ';') !== false) {
|
||||
return new DataResponse(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -162,6 +162,7 @@ class ExternalShareControllerTest extends \Test\TestCase {
|
|||
return [
|
||||
['nextcloud.com?query'],
|
||||
['nextcloud.com/#anchor'],
|
||||
['nextcloud.com/;tomcat'],
|
||||
];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue