substr_compare() 사용에 대한 보완

This commit is contained in:
bnu 2013-11-27 14:18:09 +09:00
parent 833d218a66
commit 4d9e68b9e4
5 changed files with 20 additions and 4 deletions

View file

@ -1015,7 +1015,7 @@ function removeSrcHack($match)
{
foreach($m[1] as $idx => $name)
{
if(substr_compare($name, 'on', 0, 2) === 0)
if(isset($name) && substr_compare($name, 'on', 0, 2) === 0)
{
continue;
}