From f95833e6dec7e6ca04e96ec81527a90894904254 Mon Sep 17 00:00:00 2001 From: Andreas Unterkircher Date: Sun, 13 Jan 2008 17:45:48 +0100 Subject: issue100, switch search to POST HTTP Signed-off-by: Andreas Unterkircher --- phpfspot.class.php | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'phpfspot.class.php') diff --git a/phpfspot.class.php b/phpfspot.class.php index 9a74a9a..0954040 100644 --- a/phpfspot.class.php +++ b/phpfspot.class.php @@ -1460,19 +1460,19 @@ class PHPFSPOT { */ public function startSearch($searchfor_tag, $from = 0, $to = 0) { - if(isset($_GET['from']) && $fspot->isValidDate($_GET['from'])) { - $from = $_GET['from']; + if(isset($_POST['from']) && $this->isValidDate($_POST['from'])) { + $from = $_POST['from']; } - if(isset($_GET['to']) && $fspot->isValidDate($_GET['to'])) { - $to = $_GET['to']; + if(isset($_POST['to']) && $this->isValidDate($_POST['to'])) { + $to = $_POST['to']; } - if(isset($_GET['for_tag']) && is_string($_GET['for_tag'])) { - $searchfor_tag = $_GET['for_tag']; + if(isset($_POST['for_tag']) && is_string($_POST['for_tag'])) { + $searchfor_tag = $_POST['for_tag']; } - if(isset($_GET['for_name']) && is_string($_GET['for_name'])) { - $searchfor_name = $_GET['for_name']; + if(isset($_POST['for_name']) && is_string($_POST['for_name'])) { + $searchfor_name = $_POST['for_name']; } $this->get_tags(); @@ -1499,6 +1499,8 @@ class PHPFSPOT { } } + return "ok"; + } // startSearch() /** -- cgit v1.2.3-18-g5258