...
 
Commits (1)
......@@ -122,6 +122,7 @@ by dereine: Move get_value and sanitize_value into views_handler to support it f
by dereine: Allow to expose sorts again.
#1098168 by fubhy: HTML Wrapper checkboxes in style settings in default field handler showing weird behavior
#1096366 by jamsilver: Role access plugin: Replacing array_unshift() with reset()
#1096834 by dww: Allow importing views code that starts with '<?php'.
Views 3.x-7.x-alpha1 (05-Jan-2011)
==================================
......
......@@ -1811,6 +1811,10 @@ function views_ui_import_page($form, &$form_state) {
function views_ui_import_validate($form, &$form_state) {
$view = '';
views_include('view');
// Be forgiving if someone pastes views code that starts with '<?php'.
if (substr($form_state['values']['view'], 0, 5) == '<?php') {
$form_state['values']['view'] = substr($form_state['values']['view'], 5);
}
ob_start();
eval($form_state['values']['view']);
ob_end_clean();
......