CC-2534: When copy files into storage folder it says wrong path name

filter all functions via realpath which will make directories consistent
This commit is contained in:
martin 2011-07-12 17:05:40 -04:00
parent 6972150b19
commit 1411987b01
5 changed files with 8 additions and 10 deletions

View file

@ -561,7 +561,7 @@ class ApiController extends Zend_Controller_Action
$request = $this->getRequest();
$api_key = $request->getParam('api_key');
$path = base64_decode($request->getParam('path'));
$path = realpath(base64_decode($request->getParam('path')))."/";
if (!in_array($api_key, $CC_CONFIG["apiKey"]))
{
@ -578,7 +578,7 @@ class ApiController extends Zend_Controller_Action
$request = $this->getRequest();
$api_key = $request->getParam('api_key');
$path = base64_decode($request->getParam('path'));
$path = realpath(base64_decode($request->getParam('path')))."/";
if (!in_array($api_key, $CC_CONFIG["apiKey"]))
{
@ -595,7 +595,7 @@ class ApiController extends Zend_Controller_Action
$request = $this->getRequest();
$api_key = $request->getParam('api_key');
$path = base64_decode($request->getParam('path'));
$path = realpath(base64_decode($request->getParam('path')))."/";
if (!in_array($api_key, $CC_CONFIG["apiKey"]))
{