mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-07-01 17:26:42 +00:00
fix links + dashes in search queries
This commit is contained in:
parent
88534c9214
commit
f05302cd7b
7 changed files with 279 additions and 174 deletions
|
@ -53,7 +53,7 @@ require("header.php");
|
|||
$query = htmlspecialchars($query);
|
||||
// removes the risky characters
|
||||
// there needs to be regex checking, only allow [a-zA-Z0-9.:/]
|
||||
$query=preg_replace("/[^a-zA-Z0-9:\/.\ ]/", "", $query);
|
||||
$query=preg_replace("/[^a-zA-Z0-9:\/.\ -]/", "", $query);
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue