Revisions
-
tamasd revised this gist
Feb 7, 2012 . 1 changed file with 2 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,5 @@ --- actions/script.action.inc +++ actions/script.action.inc @@ -1,6 +1,10 @@ <?php -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ Index: sites/all/modules/views_bulk_operations/actions/script.action.inc =================================================================== --- sites/all/modules/views_bulk_operations/actions/script.action.inc (revision 39640) +++ sites/all/modules/views_bulk_operations/actions/script.action.inc (working copy) @@ -1,6 +1,10 @@ <?php function views_bulk_operations_script_action_info() { +##GardensExcludeFromExportStart################################################ +// Make it impossible on Gardens sites to execute PHP scripts via VBO. +return array(); +##################################################GardensExcludeFromExportEnd## if (!module_exists('actions_permissions') && !user_access('administer site configuration')) return array(); return array('views_bulk_operations_script_action' => array( 'type' => 'entity', @@ -10,6 +14,10 @@ } function views_bulk_operations_script_action($entity, $context) { +##GardensExcludeFromExportStart################################################ +// Make it impossible on Gardens sites to execute PHP scripts via VBO. +return; +##################################################GardensExcludeFromExportEnd## if (!module_exists('actions_permissions') && !user_access('administer site configuration')) { global $user; $msg = 'An attempt to execute arbitrary PHP script action by user <a href="user/!uid">%user</a> was blocked because of lack of permission.';