Browse Source

Query does not need to be encoded (htmlspecialchars)

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

+ 2 - 2
search.php

@@ -7,8 +7,8 @@
 
 <title>
 <?php
-  $query = htmlspecialchars(trim($_REQUEST["q"]));
-  echo $query;
+  $query = $_REQUEST["q"];
+  echo htmlspecialchars(trim($query));
 ?> - LibreX</title>
 </head>
     <body>