aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/social.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/engine/lib/social.php b/engine/lib/social.php
index 036173dfc..ffa98444b 100644
--- a/engine/lib/social.php
+++ b/engine/lib/social.php
@@ -17,7 +17,7 @@
* @param string $string
* @return array
*/
- function filter_string(string $string) {
+ function filter_string($string) {
// Convert it to lower and trim
$string = strtolower($string);
@@ -38,7 +38,7 @@
$terms = explode(' ',$string);
// Remove any blacklist terms
- $terms = array_filter($terms, 'remove_blacklist');
+ //$terms = array_filter($terms, 'remove_blacklist');
return $terms;
@@ -54,6 +54,9 @@
global $CONFIG;
+ if (!is_array($CONFIG->wordblacklist))
+ return $input;
+
if (strlen($input) < 3 || in_array($input,$CONFIG->wordblacklist))
return false;