Skip to content
Snippets Groups Projects
Commit 3a0d9ac4 authored by Elmar Ludwig's avatar Elmar Ludwig
Browse files

remove bogus escapeshellcmd(), fixes #3124

Closes #3124

Merge request studip/studip!2106
parent 6a6ad415
No related branches found
No related tags found
No related merge requests found
...@@ -54,7 +54,7 @@ PluginEngine::loadPlugins(); ...@@ -54,7 +54,7 @@ PluginEngine::loadPlugins();
// Set Base URL, otherwise links will fail on SENDFILE_LINK_MODE = rewrite // Set Base URL, otherwise links will fail on SENDFILE_LINK_MODE = rewrite
URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']); URLHelper::setBaseURL($GLOBALS['ABSOLUTE_URI_STUDIP']);
$file_id = escapeshellcmd(basename(Request::get('file_id'))); $file_id = basename(Request::get('file_id'));
$type = Request::int('type'); $type = Request::int('type');
if ($type < 0 || $type > 7) { if ($type < 0 || $type > 7) {
$type = 0; $type = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment