Commit b5bac250 authored by mikeytown2's avatar mikeytown2

#1037612 by bangound: Fixed boost_parse_url to work on non subdir installs.

parent 44f801d4
......@@ -317,7 +317,7 @@ function boost_parse_url($url = NULL, $b_path = NULL) {
if (!isset($parts['query'])) {
$parts['query'] = '';
}
$parts['path'] = str_replace($b_path, '', $parts['path']);
$parts['path'] = preg_replace('/^' . preg_quote($b_path, '/') .'/i', '', $parts['path']);
$parts['base_path'] = $b_path;
$parts['query_array'] = array();
parse_str($parts['query'], $parts['query_array']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment