From a736fdd3655087addcf531ac4f747ab8ef164b51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Thu, 13 Oct 2005 14:14:59 +0000 Subject: [PATCH] Fix URL rewriting not to match empty parts. --- ChangeLog | 3 +++ Documentation.html | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1a00e11c8..67d8e843c 100755 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,9 @@ phpMyAdmin - Changelog $Id$ $Source$ +2005-10-13 Michal Čihař + * Documentation.html: Fix URL rewriting not to match empty parts. + 2005-10-13 Sebastian Mendel * left.php: preselect db if only one db * server_privileges.php: diff --git a/Documentation.html b/Documentation.html index 582be2db0..ba40a7e4a 100755 --- a/Documentation.html +++ b/Documentation.html @@ -2834,8 +2834,8 @@ To create a new, empty mimetype please see libraries/transformations/template_ge
 RewriteEngine On
 RewriteBase /path_to_phpMyAdmin
-RewriteRule ^([a-zA-Z0-9_]*)/([a-zA-Z0-9_]*)$ index.php?db=$1&table=$2 [R]
-RewriteRule ^([a-zA-Z0-9_]*)$ index.php?db=$1 [R]
+RewriteRule ^([a-zA-Z0-9_]+)/([a-zA-Z0-9_]+)$ index.php?db=$1&table=$2 [R]
+RewriteRule ^([a-zA-Z0-9_]+)$ index.php?db=$1 [R]