]> git.donarmstrong.com Git - debbugs.git/blobdiff - Debbugs/CGI/Pkgreport.pm
we know that the statement is ok; use $1 to avoid taint issues
[debbugs.git] / Debbugs / CGI / Pkgreport.pm
index d14997930ab82facf0ef84dbd711a51d21abd5ee..523dbbb90a6a909d9043a4e949836dc9c35624b6 100644 (file)
@@ -486,7 +486,7 @@ sub parse_order_statement_into_boolean {
               }exg;
     # check that the parsed statement is just valid boolean statements
     if ($statement =~ /^([01\(\)\&\|]+)$/) {
-        return eval "$statement";
+        return eval "$1";
     } else {
         # this is an invalid boolean statement
         return 0;