[geeklog-users] Trouble with spaces in usernames when uploading userphotos
Dirk Haun
dirk at haun-online.de
Mon Jan 12 14:57:28 EST 2004
Per,
>Maybe a fix in upload.class.php ? possibly by adding a couple of " ' " for
>the path ?
You're on the right track :-)
For ImageMagick, change line 469 so that it reads
$cmd = $this->_pathToMogrify . ' -resize '. $newsize . " '" . $this-
>_fileUploadDirectory . '/' . $this->_getDestinationName() . "' 2>&1";
For NetPBM, it's line 490 and should read
$cmd_end = " '" . $filename . "' | " . $this->_pathToNetPBM .
'pnmscale -xsize=' . $newwidth . ' -ysize=' . $newheight . ' | ' . $this-
>_pathToNetPBM;
Disclaimer: I've only tested the ImageMagick fix ...
bye, Dirk
--
http://www.haun-online.de/
http://www.haun.info/
More information about the geeklog-users
mailing list