1
0
mirror of https://github.com/prasathmani/tinyfilemanager.git synced 2025-08-02 14:57:52 +02:00

remove unwanted characters from folder name

This commit is contained in:
Prasath Mani
2017-12-13 13:26:56 +05:30
parent 98749b9ae6
commit cf1eaf8ef1

View File

@@ -249,7 +249,7 @@ if (isset($_GET['del']) && !FM_READONLY) {
// Create folder // Create folder
if (isset($_GET['new']) && isset($_GET['type']) && !FM_READONLY) { if (isset($_GET['new']) && isset($_GET['type']) && !FM_READONLY) {
$new = $_GET['new']; $new = strip_tags($_GET['new']);
$type = $_GET['type']; $type = $_GET['type'];
$new = fm_clean_path($new); $new = fm_clean_path($new);
$new = str_replace('/', '', $new); $new = str_replace('/', '', $new);