add $deliver flag to item_store() and item_store_update() [default true]. If false, do not send any notifications or process tag_deliver. This should avoid any network activity from happening as the result of a channel (actually item) import. Other minor fixes in the handling of the $allow_exec flag and further protecting CSS passed to widgets from rogue code and XSS.
This commit is contained in:
@@ -915,8 +915,8 @@ function widget_photo($arr) {
|
||||
|
||||
// ensure they can't sneak in an eval(js) function
|
||||
|
||||
if(strpos($style,'(') !== false)
|
||||
return '';
|
||||
if(strpbrk($style,'(\'"<>') !== false)
|
||||
$style = '';
|
||||
|
||||
if(array_key_exists('zrl', $arr) && isset($arr['zrl']))
|
||||
$zrl = (($arr['zrl']) ? true : false);
|
||||
@@ -956,8 +956,8 @@ function widget_cover_photo($arr) {
|
||||
|
||||
// ensure they can't sneak in an eval(js) function
|
||||
|
||||
if(strpos($style,'(') !== false)
|
||||
return '';
|
||||
if(strpbrk($style,'(\'"<>') !== false)
|
||||
$style = '';
|
||||
|
||||
$c = get_cover_photo($channel_id,'html');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user