X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=contrib%2Fcollection3%2Fbin%2Findex.cgi;h=4723af964e9ecf7f6ae5a965b00855748a8adcfc;hb=5a7b3083a24416a12f59734209ebec47298c4d8b;hp=a85027176c426dfd0f4e59c8fb109953d7237d42;hpb=b22ffd9cb1938b4931d7628420a9f0b50461333f;p=collectd.git 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 ();