From: Andrew Dolgov Date: Fri, 7 Dec 2012 05:47:46 +0000 (+0400) Subject: add cosmetic workaround for get_self_url_prefix() to stop the unwashed whining about... X-Git-Tag: 1.6.2~6 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=be1af6703f78998ddd5e07f965816dda74b8d133;p=tt-rss.git add cosmetic workaround for get_self_url_prefix() to stop the unwashed whining about double slashes in URLs --- diff --git a/include/functions.php b/include/functions.php index 1c3f4cbb..95881dd9 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){