1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-16 11:02:40 +01:00

remove tinyboard special markup from slugs; thanks stigma for reporting

This commit is contained in:
czaks 2015-03-30 06:26:53 +02:00
parent 10f93d0d43
commit 5d8e023fc4

View File

@ -2459,6 +2459,9 @@ function slugify($post) {
// Transliterate local characters like ü, I wonder how would it work for weird alphabets :^) // Transliterate local characters like ü, I wonder how would it work for weird alphabets :^)
$slug = iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $slug); $slug = iconv("UTF-8", "ASCII//TRANSLIT//IGNORE", $slug);
// Remove Tinyboard custom markup
$slug = preg_replace("/<tinyboard [^>]+>.*?<\/tinyboard>/s", '', $slug);
// Downcase everything // Downcase everything
$slug = strtolower($slug); $slug = strtolower($slug);