Skip to content

Commit 942d7d7

Browse files
authored
Merge pull request #499 from saibotd/patch-1
Fix for quotation marks in redirect URL
2 parents 3b38c92 + d670087 commit 942d7d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Detectors/Redirect.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public function detect(): ?UriInterface
1818
private function extract(string $value): ?UriInterface
1919
{
2020
if (preg_match('/url=(.+)$/i', $value, $match)) {
21-
return $this->extractor->resolveUri($match[1]);
21+
return $this->extractor->resolveUri(trim($match[1], '\'"'));
2222
}
2323

2424
return null;

0 commit comments

Comments
 (0)