aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2025-04-09 21:18:18 +0200
committerAndreas Gohr <andi@splitbrain.org>2025-04-09 21:18:18 +0200
commita88f4f86417a0745cadc205e7c14d03f83f8ef70 (patch)
tree6eb62391190f9f94e1a2af8214b47c425de2ca46
parentefd15b3e952d8e24a13b4e3cd0849f379dc17d6a (diff)
downloaddokuwiki-a88f4f86417a0745cadc205e7c14d03f83f8ef70.tar.gz
dokuwiki-a88f4f86417a0745cadc205e7c14d03f83f8ef70.zip
use B flag for Apache rewrite rules. fixes #4238
The B flag reenables passing spaces and other special chars in URLs to be picked up (and cleaned) by DokuWiki's ID processing. The flag has been available in non-broken form since Apache 2.2.9 and should be safe to use. See https://stackoverflow.com/q/3460643
-rw-r--r--.htaccess.dist8
1 files changed, 4 insertions, 4 deletions
diff --git a/.htaccess.dist b/.htaccess.dist
index 3e96a8388..5de8ebeab 100644
--- a/.htaccess.dist
+++ b/.htaccess.dist
@@ -22,13 +22,13 @@
## $conf['userewrite'] = 1 - not needed for rewrite mode 2
#RewriteEngine on
#
-#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
-#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
-#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
+#RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L,B]
+#RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L,B]
+#RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L,B]
#RewriteRule ^$ doku.php [L]
#RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
-#RewriteRule (.*) doku.php?id=$1 [QSA,L]
+#RewriteRule (.*) doku.php?id=$1 [QSA,L,B]
#RewriteRule ^index.php$ doku.php
#
## Not all installations will require the following line. If you do,