Permalink
Browse files

Merge pull request #18 from Rarst/slashes

Fixed trailing slash trim on Windows.
  • Loading branch information...
2 parents c93037e + 9019c24 commit c397b12b1415f556f2c8ae8d8ef5f025bc7ebd53 @billf billf committed Mar 26, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 xhprof_lib/display/xhprof.php
View
4 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 c397b12

Please sign in to comment.