]> git.ipfire.org Git - thirdparty/rrdtool-1.x.git/commitdiff
Update src/rrd_cgi.c cgi-sanitizer 1136/head
authorTobias Oetiker <tobi@oetiker.ch>
Thu, 21 Oct 2021 09:24:48 +0000 (11:24 +0200)
committerGitHub <noreply@github.com>
Thu, 21 Oct 2021 09:24:48 +0000 (11:24 +0200)
Co-authored-by: Wolfgang Stöggl <c72578@yahoo.de>
src/rrd_cgi.c

index 36a799762202ad849eac4f69d56e4bb88f981486..e7eb5be588b62158a292fd0938a4043d9288c330 100644 (file)
@@ -793,7 +793,7 @@ static char *rrdstrip(
     p = buf;
     while (*p) {
         if (*p == '<' || *p == '>' ||
-            *p == '&' || *p < ' ' || *p > '\'' || *p == '"') {
+            *p == '&' || *p < ' ' || *p == '\'' || *p == '"') {
             *p = '_';
         }
         p++;