From 28b7eedc45695021e96af6112dab20195b118873 Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 6 Apr 2014 19:59:00 -0700 Subject: check_webbie (webbie validator) returning bad webbies --- include/text.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/text.php b/include/text.php index 95e59c54c..48a7ed368 100755 --- a/include/text.php +++ b/include/text.php @@ -1763,6 +1763,7 @@ function check_webbie($arr) { $str .= "'" . dbesc($y) . "'"; } } + if(strlen($str)) { $r = q("select channel_address from channel where channel_address in ( $str ) "); if(count($r)) { @@ -1771,8 +1772,9 @@ function check_webbie($arr) { } } foreach($arr as $x) { - if(! in_array($x,$taken)) { - return $x; + $y = legal_webbie($x); + if(! in_array($y,$taken)) { + return $y; } } } -- cgit v1.2.3