xss prevention
This commit is contained in:
parent
de550d45ff
commit
2f1e4a6370
@ -746,6 +746,11 @@ function widget_photo($arr) {
|
|||||||
if(array_key_exists('style',$arr) && isset($arr['style']))
|
if(array_key_exists('style',$arr) && isset($arr['style']))
|
||||||
$style = $arr['style'];
|
$style = $arr['style'];
|
||||||
|
|
||||||
|
// ensure they can't sneak in an eval(js) function
|
||||||
|
|
||||||
|
if(strpos($style,'(') !== false)
|
||||||
|
return '';
|
||||||
|
|
||||||
if(array_key_exists('zrl',$arr) && isset($arr['zrl']))
|
if(array_key_exists('zrl',$arr) && isset($arr['zrl']))
|
||||||
$zrl = (($arr['zrl']) ? true : false);
|
$zrl = (($arr['zrl']) ? true : false);
|
||||||
|
|
||||||
|
@ -1 +1 @@
|
|||||||
2014-05-13.674
|
2014-05-14.675
|
||||||
|
@ -10,6 +10,8 @@ header #banner {
|
|||||||
margin-top: 75px;
|
margin-top: 75px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user