aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-04-06 19:59:00 -0700
committerfriendica <info@friendica.com>2014-04-06 19:59:00 -0700
commit28b7eedc45695021e96af6112dab20195b118873 (patch)
treef29ea049f4af3316af2fe7d6b2af0a7ed32fddae /include
parent81ce5f14d2c85fb7c4a19c169acc06fe2424eac8 (diff)
downloadvolse-hubzilla-28b7eedc45695021e96af6112dab20195b118873.tar.gz
volse-hubzilla-28b7eedc45695021e96af6112dab20195b118873.tar.bz2
volse-hubzilla-28b7eedc45695021e96af6112dab20195b118873.zip
check_webbie (webbie validator) returning bad webbies
Diffstat (limited to 'include')
-rwxr-xr-xinclude/text.php6
1 files 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;
}
}
}