#11 jpspan fails in apache with AliasMatch + solution

closed-fixed
Harry Fuecks
None
5
2005-05-26
2005-04-10
Anonymous
No

When using the AliasMatch directive in apache, the variable
SCRIPT_NAME may include the class name and function name

However the function getUriPath() in Server.php assumes
that this
is not the case and fails.

The solution is simple: replace the line
$basePath = explode('/',$_SERVER['SCRIPT_NAME']);
with
$basePath = explode('/',$_SERVER['SCRIPT_FILENAME']);
and all works as expected.

Discussion

  • Harry Fuecks
    Harry Fuecks
    2005-05-26

    • assigned_to: nobody --> harryf
    • status: open --> closed-fixed
     
  • Harry Fuecks
    Harry Fuecks
    2005-05-26

    Logged In: YES
    user_id=569780

    OK - this should be fixed with the latest release, while
    fixing similar problems effecting PHP as CGI.

    Please re-open if not.