From: Christian Weiske Date: Fri, 12 Feb 2016 06:43:25 +0000 (+0100) Subject: trim query string X-Git-Tag: v0.2.0~41 X-Git-Url: https://git.cweiske.de/phinde.git/commitdiff_plain/cb78e8dbc0351660d0c5c15be2a7b9b969ad9dbe?hp=d6c817be8dfb9d41ea3f19cecd90619cde97209d;ds=sidebyside trim query string --- diff --git a/www/index.php b/www/index.php index dbdcfd2..6bdaf9d 100644 --- a/www/index.php +++ b/www/index.php @@ -6,8 +6,8 @@ require 'www-header.php'; if (!isset($_GET['q'])) { $_GET['q'] = ''; } +$query = trim($_GET['q']); -$query = $_GET['q']; $page = 0; if (isset($_GET['page'])) { if (!is_numeric($_GET['page'])) {