← All changes
|
app/Assist/Controllers/DomainsSuggestionController.php
+5
-1
3.1.3
→
3.2.1
View file →
| @@ -118,9 +118,13 @@ | ||
| 118 | 118 | * @return string |
| 119 | 119 | */ |
| 120 | 120 | public static function cleanSiteTitle($siteTitle) |
| 121 | 121 | { |
| 122 | - return trim(preg_replace('/[^\p{L}\p{N}\s\-]+/u', '', html_entity_decode($siteTitle))); | |
| 122 | + return trim(preg_replace( | |
| 123 | + '/[^\p{L}\p{N}\s\-]+/u', | |
| 124 | + '', | |
| 125 | + html_entity_decode($siteTitle, ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401) | |
| 126 | + )); | |
| 123 | 127 | } |
| 124 | 128 | |
| 125 | 129 | /** |
| 126 | 130 | * Check if the site Title is part of the blocked list. |