1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 04:32:01 +02:00

Fix for adding media with '+' in the filename.

This commit is contained in:
Cameron 2016-07-06 17:08:17 -07:00
parent 2a14308600
commit e2d70a4284

View File

@ -1633,7 +1633,7 @@ class media_admin_ui extends e_admin_ui
}
$fileName = str_replace('%','',$fileName);
$fileName = str_replace(array('%','+'),'',$fileName);
// remove script extensions.
if(substr($fileName,-4) == ".php" || substr($fileName,-4) == ".htm" || substr($fileName,-5) == ".html" || substr($fileName,-4) == ".asp")