mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 16:26:59 -04:00
Merge pull request #49544 from nextcloud/backport/49541/stable30
This commit is contained in:
commit
642110942d
1 changed files with 2 additions and 1 deletions
|
|
@ -100,10 +100,11 @@ class ExternalSharesController extends Controller {
|
|||
*
|
||||
* @param string $remote
|
||||
* @return DataResponse
|
||||
* @AnonRateThrottle(limit=5, period=120)
|
||||
*/
|
||||
#[PublicPage]
|
||||
public function testRemote($remote) {
|
||||
if (str_contains($remote, '#') || str_contains($remote, '?') || str_contains($remote, ';')) {
|
||||
if (preg_match('%[!#$&\'()*+,;=?@[\]]%', $remote)) {
|
||||
return new DataResponse(false);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue