Browse Source

do not allow cr/lf/tab symbols in titleforurl

Andrew Dolgov 2 years ago
parent
commit
b279e3539f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      backend.php

+ 1 - 1
backend.php

@@ -705,7 +705,7 @@
 						$node = $doc->getElementsByTagName('title')->item(0);
 
 						if ($node) {
-							$rv['title'] = trim($node->nodeValue);
+							$rv['title'] = preg_replace("/[\r\n\t]/", "", trim($node->nodeValue));
 
 							$cache->set($key, $rv, 86400 * 12);
 						}