Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem in File Manager
#1
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'])
- Julian

My GetSimple Plugins: Simple Image Gallery | TweetMeme reTweet Button
Reply
#2
I have also experienced this with both 2.0 and 2.0.1 but will apply the fix detailed above.
Modern UI Admin for GetSimple
Watch the demo. Install this plugin. Use this CSS. Enjoy.
Reply




Users browsing this thread: 1 Guest(s)