Permalink
Browse files

Fixed trailing slash trim on Windows.

  • Loading branch information...
1 parent c93037e commit 9019c24a45a4b1ae2ade26cf00966ef42f8b9925 @Rarst Rarst committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 xhprof_lib/display/xhprof.php
@@ -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']), '/\\');
/**
@@ -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

0 comments on commit 9019c24

Please sign in to comment.