Skip to content
Snippets Groups Projects
Commit 5f4e0d13 authored by Elmar Ludwig's avatar Elmar Ludwig Committed by Jan-Hendrik Willms
Browse files

encode filename for SENDFILE_LINK_MODE=rewrite, fixes #2609

Closes #2609

Merge request studip/studip!1759
parent 0852b9a3
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ class FileRef extends SimpleORMap implements PrivacyObject, FeedbackRange ...@@ -161,7 +161,7 @@ class FileRef extends SimpleORMap implements PrivacyObject, FeedbackRange
default: default:
$link[] = 'normal/'; $link[] = 'normal/';
} }
$link[] = $type . '/' . $file_id . '/' . $file_name; $link[] = $type . '/' . $file_id . '/' . urlencode($file_name);
break; break;
default: default:
$link[] = 'sendfile.php'; $link[] = 'sendfile.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment