aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/index.php2
1 files changed, 1 insertions, 1 deletions
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'])) {