projects
/
WP-Plugins
/
michsci-products.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dbea70
)
testing sanitize string
author
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 13:45:35 +0000
(08:45 -0500)
committer
Anthony Talarico
<talarico@gaslightmedia.com>
Tue, 2 Feb 2016 13:45:35 +0000
(08:45 -0500)
index.php
patch
|
blob
|
history
diff --git
a/index.php
b/index.php
index
acb2666
..
4e90cc5
100644
(file)
--- a/
index.php
+++ b/
index.php
@@
-462,7
+462,7
@@
function michsci_shortcode($atts)
// $text_query = $_REQUEST['tsearch'];
$text_query = filter_var($_REQUEST['tsearch'], FILTER_SANITIZE_STRING);
// strip_tags($text_query);
- if(isset($
text_query
)){
+ if(isset($
_REQUEST['tsearch']
)){
setcookie("search", "true",time()+1, "/" );
} else {