summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bruederli <bruederli@kolabsys.com>2013-09-02 15:57:20 (GMT)
committerThomas Bruederli <bruederli@kolabsys.com>2013-09-02 15:57:20 (GMT)
commit7164ba811e5f711023a3c87841729b6ff44414b5 (patch)
treefb48a47f37ba5ee810f14325184451e13d089664
parentadff720d390cbd6efde8076e612621d0e36b164e (diff)
downloadiRony-7164ba811e5f711023a3c87841729b6ff44414b5.tar.gz
Fix regex that alters URIs when passing requests through debug logger
-rw-r--r--public_html/debug.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/public_html/debug.php b/public_html/debug.php
index af03921..84e89b3 100644
--- a/public_html/debug.php
+++ b/public_html/debug.php
@@ -55,7 +55,7 @@ $rcube->write_log('davdebug', $_SERVER['REQUEST_METHOD'] . ' ' . $_SERVER['REQUE
join("\n", $http_headers) . "\n\n" . $http_body);
// fix URIs in request body
-$http_body = preg_replace("!(<d:href>$base_uri)!i", '\\1index.php/', $http_body);
+$http_body = preg_replace("!(<\w+:href[^>]*>$base_uri)!i", '\\1index.php/', $http_body);
$http_headers['Content-Length'] = "Content-Length: " . strlen($http_body);
// forward the full request to index.php