diff options
author | Andrew Dolgov <[email protected]> | 2012-12-07 09:47:46 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-12-07 09:47:50 +0400 |
commit | be1af6703f78998ddd5e07f965816dda74b8d133 (patch) | |
tree | 9501fd8d41de87bbd53fc572b4b2c3ec394b1feb | |
parent | 61a748f87ffa90359147ed6a3f20ee11603bf0d2 (diff) |
add cosmetic workaround for get_self_url_prefix() to stop the unwashed whining about double slashes in URLs
-rw-r--r-- | include/functions.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 1c3f4cbb9..95881dd9e 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3405,8 +3405,9 @@ return $tag; } + // we need to placate idiots who don't know any better function get_self_url_prefix() { - return SELF_URL_PATH; + return preg_replace("/\/$/", "", SELF_URL_PATH); } function opml_publish_url($link){ |