mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-16 09:49:54 +09:00
php5 syntax change to php4
git-svn-id: http://xe-core.googlecode.com/svn/trunk@10262 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
774a187f65
commit
092d7988ba
2 changed files with 5 additions and 5 deletions
|
|
@ -288,7 +288,7 @@
|
|||
|
||||
if($m[1] == 'param')
|
||||
{
|
||||
if(stripos($m[0], 'allowscriptaccess'))
|
||||
if(strpos(strtolower($m[0]), 'allowscriptaccess'))
|
||||
{
|
||||
$m[0] = '<param name="allowscriptaccess" value="never"';
|
||||
if(substr($m[0], -1) == '/')
|
||||
|
|
@ -300,13 +300,13 @@
|
|||
}
|
||||
else if($m[1] == 'embed')
|
||||
{
|
||||
if(stripos($m[0], 'allowscriptaccess'))
|
||||
if(strpos(strtolower($m[0]), 'allowscriptaccess'))
|
||||
{
|
||||
$m[0] = str_ireplace(array('always', 'samedomain'), 'never', $m[0]);
|
||||
$m[0] = preg_replace('/always|samedomain/i', 'never', $m[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
$m[0] = str_ireplace('<embed', '<embed allowscriptaccess="never"', $m[0]);
|
||||
$m[0] = preg_replace('/\<embed/i', '<embed allowscriptaccess="never"', $m[0]);
|
||||
}
|
||||
}
|
||||
return $m[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue