Skip to content
Snippets Groups Projects

Relative path in URL is not properly encoded when redirecting

1 file
+ 1
0
Compare changes
  • Side-by-side
  • Inline
@@ -162,6 +162,7 @@ class StageFileProxySubscriber implements EventSubscriberInterface {
];
if ($config->get('hotlink')) {
$relative_path = UrlHelper::encodePath($relative_path);
$location = Url::fromUri("$server/$remote_file_dir/$relative_path", [
'query' => $query_parameters,
'absolute' => TRUE,
Loading