mirror of
https://github.com/typecho/typecho.git
synced 2025-03-24 20:09:47 +01:00
fix #636
This commit is contained in:
parent
ac1c62a07d
commit
c056f6c895
@ -543,6 +543,12 @@ EOF;
|
||||
if ($attrLength > 0 && "/" == trim($startTags[2][$key][$attrLength - 1])) {
|
||||
continue;
|
||||
}
|
||||
|
||||
// 白名单
|
||||
if (preg_match("/^(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)$/i", $tag)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!empty($closeTags[1]) && $closeTagsIsArray) {
|
||||
if (false !== ($index = array_search($tag, $closeTags[1]))) {
|
||||
unset($closeTags[1][$index]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user