We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1319b4b commit 4355290Copy full SHA for 4355290
src/Controller/MediaProxyController.php
@@ -46,9 +46,8 @@ public function __construct(
46
)]
47
public function execute(Request $request): Response
48
{
49
- /** @var string|null $url */
50
- $url = $request->query['url'];
51
- if (is_null($url) || !str_starts_with($url, 'https://raw.githubusercontent.com/')) {
+ $url = $request->query->getString('url');
+ if ('' === $url || !str_starts_with($url, 'https://raw.githubusercontent.com/')) {
52
return $this->malformedRequestError();
53
}
54
0 commit comments