From a8381737bde8d2adce1f106c93430abea0f20476 Mon Sep 17 00:00:00 2001 From: Eike Rathke Date: Sun, 8 Nov 2015 19:34:37 +0100 Subject: fix #367 - do not specialize numeric tag to 'id-tag' URL Apparently there is no reason in make_section_in_url() to "escape" a numeric URL for a tags section if tag_url_style is 'tag'. In parse_section_url() tag_url_style is checked, and if 'tag' the URL token is used. --- include/functions_url.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/functions_url.inc.php b/include/functions_url.inc.php index 138a895e1..e0f09a28c 100644 --- a/include/functions_url.inc.php +++ b/include/functions_url.inc.php @@ -379,7 +379,7 @@ function make_section_in_url($params) $section_string.= '/'.$tag['id']; break; case 'tag': - if (isset($tag['url_name']) and !is_numeric($tag['url_name']) ) + if (isset($tag['url_name'])) { $section_string.= '/'.$tag['url_name']; break; @@ -824,4 +824,4 @@ function url_is_remote($url) return false; } -?> \ No newline at end of file +?> -- cgit v1.2.3