mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 03:35:13 +00:00
validate poco chatrooms before storing
This commit is contained in:
parent
ec4d3a2349
commit
9bedb38621
1 changed files with 3 additions and 0 deletions
|
@ -72,6 +72,9 @@ function poco_load($xchan = '',$url = null) {
|
|||
if($xchan) {
|
||||
if(array_key_exists('chatrooms',$j) && is_array($j['chatrooms'])) {
|
||||
foreach($j['chatrooms'] as $room) {
|
||||
if((! $room['url']) || (! $room['desc']))
|
||||
continue;
|
||||
|
||||
$r = q("select * from xchat where xchat_url = '%s' and xchat_xchan = '%s' limit 1",
|
||||
dbesc($room['url']),
|
||||
dbesc($xchan)
|
||||
|
|
Loading…
Reference in a new issue