mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 20:30:39 +02:00
Fix for adding media with '+' in the filename.
This commit is contained in:
@@ -1633,7 +1633,7 @@ class media_admin_ui extends e_admin_ui
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$fileName = str_replace('%','',$fileName);
|
$fileName = str_replace(array('%','+'),'',$fileName);
|
||||||
|
|
||||||
// remove script extensions.
|
// remove script extensions.
|
||||||
if(substr($fileName,-4) == ".php" || substr($fileName,-4) == ".htm" || substr($fileName,-5) == ".html" || substr($fileName,-4) == ".asp")
|
if(substr($fileName,-4) == ".php" || substr($fileName,-4) == ".htm" || substr($fileName,-5) == ".html" || substr($fileName,-4) == ".asp")
|
||||||
|
Reference in New Issue
Block a user