Browse Source

remove tinyboard special markup from slugs; thanks stigma for reporting

pull/40/head
czaks 9 years ago
parent
commit
5d8e023fc4
  1. 3
      inc/functions.php

3
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 [^>]+>.*?<\/tinyboard>/s", '', $slug);
// Downcase everything
$slug = strtolower($slug);

Loading…
Cancel
Save