X-Git-Url: https://git.cweiske.de/ouya-imagestore.git/blobdiff_plain/9cfd31d1aa1990a1ce4200678b20ec42dd43330f..c706938dba93562cfea0c0932942510e9dfff750:/src/imagestore/Controller/Api/Apps.php diff --git a/src/imagestore/Controller/Api/Apps.php b/src/imagestore/Controller/Api/Apps.php index 32b6ca6..39e7a17 100644 --- a/src/imagestore/Controller/Api/Apps.php +++ b/src/imagestore/Controller/Api/Apps.php @@ -5,7 +5,9 @@ class Controller_Api_Apps extends Controller_Api_ImageBase { 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');