remove trailing slashes from displayed sources

This commit is contained in:
Shish 2012-03-19 19:48:03 +00:00
parent 49c0d09281
commit 713c3db01a

View File

@ -100,6 +100,9 @@ class TagEditTheme extends Themelet {
$proto_domain = explode("://", $source); $proto_domain = explode("://", $source);
$h_source = html_escape($proto_domain[1]); $h_source = html_escape($proto_domain[1]);
$u_source = html_escape($source); $u_source = html_escape($source);
if(endsWith($h_source, "/")) {
$h_source = substr($h_source, 0, -1);
}
return "<a href='$u_source'>$h_source</a>"; return "<a href='$u_source'>$h_source</a>";
} }
return "Unknown"; return "Unknown";