Browse Source

Query does need to be encoded in input field

poesty 1 year ago
parent
commit
d982f8e21d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      search.php

+ 1 - 1
search.php

@@ -24,7 +24,7 @@
                         die();
                     }
 
-                    echo "value=\"$query\"";
+                    echo "value=\"" . htmlspecialchars(trim($query)) . "\"";
                 ?>
             >
             <br>