From: Florian Forster Date: Fri, 7 Sep 2012 09:15:24 +0000 (+0200) Subject: Merge branch 'collectd-5.0' into collectd-5.1 X-Git-Tag: collectd-5.1.1~10 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=fda68e239798cea197a225ed5325f5bb3c2e70de;p=collectd.git Merge branch 'collectd-5.0' into collectd-5.1 Conflicts: src/swap.c --- fda68e239798cea197a225ed5325f5bb3c2e70de diff --cc contrib/collection3/bin/index.cgi index 4723af96,e28e9857..a8502717 --- a/contrib/collection3/bin/index.cgi +++ b/contrib/collection3/bin/index.cgi @@@ -237,31 -159,30 +237,53 @@@ sub end_htm HTML + $html_started = 0; +} + +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 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 ();