summaryrefslogtreecommitdiff
path: root/lib/exe/ajax.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-02-11 22:23:24 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-02-11 22:23:24 +0100
commitc6497d393c535ea8007f277eca65d7083be02159 (patch)
tree9d3f4cc2fc02dd826bbbe2a1c44d40962061f362 /lib/exe/ajax.php
parent0667123fd26e32f9e914b6bb4a2bfcd6f894c076 (diff)
downloadrpg-c6497d393c535ea8007f277eca65d7083be02159.tar.gz
rpg-c6497d393c535ea8007f277eca65d7083be02159.tar.bz2
avoid warning in linkwizard when a space is entered as query
Diffstat (limited to 'lib/exe/ajax.php')
-rw-r--r--lib/exe/ajax.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/exe/ajax.php b/lib/exe/ajax.php
index 1939a7bcb..7d594dc04 100644
--- a/lib/exe/ajax.php
+++ b/lib/exe/ajax.php
@@ -238,7 +238,7 @@ function ajax_linkwiz(){
global $conf;
global $lang;
- $q = ltrim($_POST['q'],':');
+ $q = ltrim(trim($_POST['q']),':');
$id = noNS($q);
$ns = getNS($q);