diff options
Diffstat (limited to 'showdependencygraph.cgi')
-rwxr-xr-x | showdependencygraph.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/showdependencygraph.cgi b/showdependencygraph.cgi index e73b1f633..a036ee0c9 100755 --- a/showdependencygraph.cgi +++ b/showdependencygraph.cgi @@ -101,7 +101,7 @@ my @valid_rankdirs = ('LR', 'RL', 'TB', 'BT'); my $rankdir = $cgi->param('rankdir') || 'TB'; # Make sure the submitted 'rankdir' value is valid. -if (lsearch(\@valid_rankdirs, $rankdir) < 0) { +if (!grep { $_ eq $rankdir } @valid_rankdirs) { $rankdir = 'TB'; } |