aboutsummaryrefslogtreecommitdiff
path: root/engine/lib
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-14 16:54:22 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-10-14 16:54:22 +0000
commit8441d5d048d7acfe60a9f6c8e3a325738b8cfa48 (patch)
tree0c8feb0ca4d15463319d2c87375e51a8608a7ea3 /engine/lib
parentb8c2eef9745388d3ab9b082a410f39a4beb021e3 (diff)
downloadelgg-8441d5d048d7acfe60a9f6c8e3a325738b8cfa48.tar.gz
elgg-8441d5d048d7acfe60a9f6c8e3a325738b8cfa48.tar.bz2
Removed an annoying variable cast that was destroying everything.
git-svn-id: https://code.elgg.org/elgg/trunk@2259 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib')
-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;