GetSimple Support Forum

Full Version: Problem in File Manager
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I just encounter a problem in the file manager. Uploading images or files that have special chars (&) in their name, breaks the delete functionality of the file manager. Also if the file in question is an image, the Thumb generator also has trouble generating a thumb for the photo.

Update:
Apparently is just the ampersand. I fixed this by changing line 22 in upload-ajax.php:
Code:
$name = preg_replace('/[!@#$%^&*() ]/', '_', $_FILES['Filedata']['name']);

I'm replacing all the special chars just to be sure.. But from my research only the ampersand gave me problems. If that is the case we can use just a str_replace:
Code:
str_replace('&','_',$_FILES['Filedata']['name'])
I have also experienced this with both 2.0 and 2.0.1 but will apply the fix detailed above.