testing sanitize string
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 2 Feb 2016 13:45:35 +0000 (08:45 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 2 Feb 2016 13:45:35 +0000 (08:45 -0500)
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 {