diff --git a/lib/GADS/View.pm b/lib/GADS/View.pm index 694a3cf6e..8cdb7757c 100644 --- a/lib/GADS/View.pm +++ b/lib/GADS/View.pm @@ -338,6 +338,10 @@ sub write length $self->name < 128 or error __"View name must be less than 128 characters"; + # Names consisting of just whitespace characters cause issues when displaying a view + $self->name !~ /^\s*$/ + or error __"View name must not contain only whitespace characters"; + my $global = !$self->layout->user ? 1 : $self->global; $self->clear_writable; # Force rebuild based on any updated values