From 713c3db01aa7c04590aaffd0b088049b6eb05501 Mon Sep 17 00:00:00 2001 From: Shish Date: Mon, 19 Mar 2012 19:48:03 +0000 Subject: [PATCH] remove trailing slashes from displayed sources --- ext/tag_edit/theme.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ext/tag_edit/theme.php b/ext/tag_edit/theme.php index 6b010d1a..33119847 100644 --- a/ext/tag_edit/theme.php +++ b/ext/tag_edit/theme.php @@ -100,6 +100,9 @@ class TagEditTheme extends Themelet { $proto_domain = explode("://", $source); $h_source = html_escape($proto_domain[1]); $u_source = html_escape($source); + if(endsWith($h_source, "/")) { + $h_source = substr($h_source, 0, -1); + } return "$h_source"; } return "Unknown";