Skip to content

Commit

Permalink
Merge pull request #49544 from nextcloud/backport/49541/stable30
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim authored Nov 28, 2024
2 parents 40e6036 + 7699598 commit 6421109
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,11 @@ protected function testUrl($remote, $checkVersion = false) {
*
* @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);
}

Expand Down

0 comments on commit 6421109

Please sign in to comment.