Skip to content

Commit

Permalink
Fixed trailing slash trim on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rarst committed Mar 26, 2013
1 parent c93037e commit 9019c24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xhprof_lib/display/xhprof.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* Our coding convention disallows relative paths in hrefs.
* Get the base URL path from the SCRIPT_NAME.
*/
$base_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), "/");
$base_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');


/**
Expand All @@ -58,7 +58,7 @@
function xhprof_include_js_css($ui_dir_url_path = null) {

if (empty($ui_dir_url_path)) {
$ui_dir_url_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), "/");
$ui_dir_url_path = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/\\');
}

// style sheets
Expand Down

0 comments on commit 9019c24

Please sign in to comment.