Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Widget instance counter must be numeric. Fixes #8000
  • Loading branch information
jim-p committed Oct 24, 2017
1 parent 43746e1 commit 7b973ce
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/usr/local/www/index.php
Expand Up @@ -141,6 +141,9 @@
list($basename, $col, $display, $widget_counter) = explode(':', $widget_seq_data);

if ($widget_counter != 'next') {
if (!is_numeric($widget_counter)) {
continue;
}
$widget_counter_array[$basename][$widget_counter] = true;
$widget_sequence .= $widget_sep . $widget_seq_data;
$widget_sep = ',';
Expand Down Expand Up @@ -279,6 +282,9 @@
}

list($basename, $col, $display, $copynum) = $line_items;
if (!is_numeric($copynum)) {
continue;
}

// be backwards compatible
// If the display column information is missing, we will assign a temporary
Expand Down

0 comments on commit 7b973ce

Please sign in to comment.