xss prevention
This commit is contained in:
@@ -746,6 +746,11 @@ function widget_photo($arr) {
|
||||
if(array_key_exists('style',$arr) && isset($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']))
|
||||
$zrl = (($arr['zrl']) ? true : false);
|
||||
|
||||
|
Reference in New Issue
Block a user