From 2dbea70c1de52c77bfb3ccfe316767310125007a Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Tue, 2 Feb 2016 08:44:28 -0500 Subject: [PATCH] testing sanitize string --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 8a60b58..acb2666 100644 --- a/index.php +++ b/index.php @@ -459,8 +459,8 @@ function michsci_shortcode($atts) } else if ( $cat_id = filter_var( $_REQUEST['category'], FILTER_VALIDATE_INT ) ) { michsci_list_categories($cat_id); } else if ( !$catid_id && !$product_id ) { - $text_query = $_REQUEST['tsearch']; -// $text_query = filter_var($_REQUEST['tsearch'], FILTER_SANITIZE_STRING); +// $text_query = $_REQUEST['tsearch']; + $text_query = filter_var($_REQUEST['tsearch'], FILTER_SANITIZE_STRING); // strip_tags($text_query); if(isset($text_query)){ setcookie("search", "true",time()+1, "/" ); -- 2.17.1