wrong replacement in FileContainer 
-----------------------------------

                 Key: SHINDIG-1332
                 URL: https://issues.apache.org/jira/browse/SHINDIG-1332
             Project: Shindig
          Issue Type: Bug
            Reporter: Ram Sharma


/php/src/gadgets/servlet/FileServlet.php is doing replacement with incorrect 
string (url)

$file = str_replace(Config::get('web_prefix') . '/gadgets/files/', '', 
$_SERVER["REQUEST_URI"]);

it should be like this:

$file = str_replace(Config::get('web_prefix'), '', $_SERVER["REQUEST_URI"]);

as due to some changes in php/index.php 
$servletMap does not contain '/gadgets/files/' any more.

Patch is attached.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to