aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2014-06-17 11:11:44 +0000
committerplegall <plg@piwigo.org>2014-06-17 11:11:44 +0000
commit6f8caf22ba22395b0e038989bfdc2726cc4c2342 (patch)
treeeb8f98932f9707adddf23d75d06b6c7f61cc5a71 /search.php
parent583af81d3d23ab0e3692dd7bb4a36314deab5994 (diff)
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
Diffstat (limited to 'search.php')
-rw-r--r--search.php3
1 files changed, 3 insertions, 0 deletions
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,
);
}