diff options
author | root <root@diekershoff.homeunix.net> | 2010-12-13 06:50:06 +0100 |
---|---|---|
committer | root <root@diekershoff.homeunix.net> | 2010-12-13 06:50:06 +0100 |
commit | b4b65521fe9546da760c19d8124c4cddd9406a88 (patch) | |
tree | 4dc09767b42aebde2c8b465a2815184ddfdd23d5 /mod/search.php | |
parent | 2e9dca7c9f0e50956723505ad576bf32e762d11e (diff) | |
parent | 57eb0576b018902d020bbf17e5b38a4ed7c440fd (diff) | |
download | volse-hubzilla-b4b65521fe9546da760c19d8124c4cddd9406a88.tar.gz volse-hubzilla-b4b65521fe9546da760c19d8124c4cddd9406a88.tar.bz2 volse-hubzilla-b4b65521fe9546da760c19d8124c4cddd9406a88.zip |
Merge branch 'master' of git://github.com/friendika/friendika
Diffstat (limited to 'mod/search.php')
-rw-r--r-- | mod/search.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/mod/search.php b/mod/search.php index 78a4a3d53..7605e9ae2 100644 --- a/mod/search.php +++ b/mod/search.php @@ -1,13 +1,22 @@ <?php +function search_post(&$a) { + if(x($_POST,'search')) + $a->data['search'] = $_POST['search']; +} + + function search_content(&$a) { $o = '<div id="live-search"></div>' . "\r\n"; $o .= '<h3>' . t('Search') . '</h3>'; - $search = ((x($_GET,'search')) ? rawurldecode($_GET['search']) : ''); + if(x($a->data,'search')) + $search = notags(trim($a->data['search'])); + else + $search = ((x($_GET,'search')) ? notags(trim(rawurldecode($_GET['search']))) : ''); $o .= search($search); |