From 6f8caf22ba22395b0e038989bfdc2726cc4c2342 Mon Sep 17 00:00:00 2001 From: plegall Date: Tue, 17 Jun 2014 11:11:44 +0000 Subject: feature 3093: search form, ability to select the list of properties on which the search terms applies. feature 3094: minor redesign on search form. git-svn-id: http://piwigo.org/svn/trunk@28709 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'search.php') diff --git a/search.php b/search.php index 247430fde..544eb9083 100644 --- a/search.php +++ b/search.php @@ -48,6 +48,8 @@ if (isset($_POST['submit'])) and !preg_match('/^\s*$/', $_POST['search_allwords'])) { check_input_parameter('mode', $_POST, false, '/^(OR|AND)$/'); + + $fields = array_intersect($_POST['fields'], array('name', 'comment', 'file')); $drop_char_match = array( '-','^','$',';','#','&','(',')','<','>','`','\'','"','|',',','@','_', @@ -69,6 +71,7 @@ if (isset($_POST['submit'])) ) ), 'mode' => $_POST['mode'], + 'fields' => $fields, ); } -- cgit v1.2.3