Skip to content

Commit

Permalink
Merge pull request #49543 from nextcloud/backport/49541/stable29
Browse files Browse the repository at this point in the history
  • Loading branch information
Altahrim authored Nov 28, 2024
2 parents 5eb3534 + e39137d commit a065dc0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ protected function testUrl($remote, $checkVersion = false) {
*
* @param string $remote
* @return DataResponse
* @AnonRateThrottle(limit=5, period=120)
*/
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 a065dc0

Please sign in to comment.