summaryrefslogtreecommitdiff
path: root/doku.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-02-06 19:07:31 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-02-06 19:11:19 +0100
commit4f0030dd466f56b3dc0c864656fb1bf0e76d2932 (patch)
tree09291d0635244f84e673b8336a26f44d4d92d754 /doku.php
parent412b5df14aaa2104af3d82e77380c5321cd94389 (diff)
downloadrpg-4f0030dd466f56b3dc0c864656fb1bf0e76d2932.tar.gz
rpg-4f0030dd466f56b3dc0c864656fb1bf0e76d2932.tar.bz2
ignore soft-hyphens for search FS#2049
This makes it possible to find words that include soft-hyphens. However, search higlighting will not work and I have no idea how to make it work.
Diffstat (limited to 'doku.php')
-rw-r--r--doku.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/doku.php b/doku.php
index 6cd0c0e0c..dc5e0ec66 100644
--- a/doku.php
+++ b/doku.php
@@ -27,6 +27,7 @@ if (isset($_SERVER['HTTP_X_DOKUWIKI_DO'])){
require_once(DOKU_INC.'inc/init.php');
//import variables
+$_REQUEST['id'] = str_replace("\xC2\xAD",'',$_REQUEST['id']); //soft-hyphen
$QUERY = trim($_REQUEST['id']);
$ID = getID();