{
public function handle($data)
{
- $path = str_replace('-.-', '/', $data);
+ $path = str_replace(
+ array('-.-', '+'), array('/', ' '), $data
+ );
$fullPath = $GLOBALS['imagestore']['basedir'] . $path;
if (!is_dir($fullPath)) {
return $this->error('404 Not Found', 'Path not found');