From 642bde1ec7306e5dc0fed28fda72807f2d97a3fd Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Sat, 10 Nov 2012 08:58:00 +0100 Subject: [PATCH] collection3: Remove duplicate definition of contains_invalid_chars(). Thanks to Jonathan Amiez for pointing this out! Fixes Github issue #160. --- contrib/collection3/bin/index.cgi | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/contrib/collection3/bin/index.cgi b/contrib/collection3/bin/index.cgi index a8502717..4723af96 100755 --- a/contrib/collection3/bin/index.cgi +++ b/contrib/collection3/bin/index.cgi @@ -262,28 +262,6 @@ sub contains_invalid_chars return; } -sub contains_invalid_chars -{ - my $str = shift; - - for (split (m//, $str)) - { - my $n = ord ($_); - - # Whitespace is allowed. - if (($n >= 9) && ($n <= 13)) - { - next; - } - elsif ($n < 32) - { - return (1); - } - } - - return; -} - sub show_selector { my $timespan_selection = get_timespan_selection (); -- 2.11.0