From 5d8e023fc4ba7692eb81bf690c8a04dac9d561ee Mon Sep 17 00:00:00 2001 From: czaks Date: Mon, 30 Mar 2015 06:26:53 +0200 Subject: [PATCH] remove tinyboard special markup from slugs; thanks stigma for reporting --- inc/functions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/functions.php b/inc/functions.php index 0f70d447..ab55d214 100755 --- a/inc/functions.php +++ b/inc/functions.php @@ -2459,6 +2459,9 @@ function slugify($post) { // Transliterate local characters like ΓΌ, I wonder how would it work for weird alphabets :^) $slug = iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $slug); + // Remove Tinyboard custom markup + $slug = preg_replace("/]+>.*?<\/tinyboard>/s", '', $slug); + // Downcase everything $slug = strtolower($slug);