Merge branch 'master' of github.com:gnuboard/yc4s

This commit is contained in:
gnuboard
2013-08-07 11:46:49 +09:00
28 changed files with 1041 additions and 256 deletions

View File

@ -570,6 +570,7 @@ function html_purifier($html)
$config->set('HTML.SafeObject', true);
$config->set('HTML.SafeIframe', true);
$config->set('URI.SafeIframeRegexp','%^(https?:)?//('.$safeiframe.')%');
$config->set('Attr.AllowedFrameTargets', array('_blank'));
$purifier = new HTMLPurifier($config);
return $purifier->purify($html);
}

View File

@ -281,7 +281,7 @@ class item_list
if ($this->ca_id3) {
$where_ca_id[] = " ca_id3 like '{$this->ca_id3}%' ";
}
$where[] = implode(" or ", $where_ca_id);
$where[] = "( ".implode(" or ", $where_ca_id)." )";
}
if ($this->order_by) {