From a70886b35963bbb0d2d0ee8fb3a0c6fee12c6182 Mon Sep 17 00:00:00 2001 From: "Eric Johansson (neku)" Date: Sun, 5 Apr 2015 22:44:41 +0200 Subject: [PATCH] Update core.php --- includes/core.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/core.php b/includes/core.php index 8e4c0bf..42f7961 100644 --- a/includes/core.php +++ b/includes/core.php @@ -12,6 +12,7 @@ function save_file ($file, $name, $arg){ } break; case 'custom_original': + $name = stripslashes(str_replace('/', '', $name)); $name = strip_tags(preg_replace('/\s+/', '', $name)); $file_name = gen_name('custom_original', $name); while(file_exists($path.$file_name)){