aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Weiske <christian.weiske@netresearch.de>2014-07-04 10:12:24 +0200
committerChristian Weiske <christian.weiske@netresearch.de>2014-07-04 10:12:24 +0200
commit47a3b51ef8ab7d47bc5492c830bc8905e3fb872e (patch)
tree377c8e2f51570d1d22c7685204bc48d26540d3eb /src
parentba893ee7ce9fb4bd5676dd475cc0ff6649ece7e5 (diff)
downloadphorkie-47a3b51ef8ab7d47bc5492c830bc8905e3fb872e.tar.gz
phorkie-47a3b51ef8ab7d47bc5492c830bc8905e3fb872e.zip
fix rewrite map loading
Diffstat (limited to 'src')
-rw-r--r--src/stub-phar.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stub-phar.php b/src/stub-phar.php
index ac82a38..9b65f2f 100644
--- a/src/stub-phar.php
+++ b/src/stub-phar.php
@@ -55,10 +55,10 @@ function rewritePath($path)
function rewriteWithHtaccess($path)
{
- //remove the trailing slash /
+ //remove the leading slash /
$cpath = substr($path, 1);
$bFoundMatch = false;
- $map = include(__DIR__ . '/../src/gen-rewritemap.php');
+ $map = include('phar://' . __FILE__ . '/src/gen-rewritemap.php');
foreach ($map as $pattern => $replace) {
if (preg_match($pattern, $cpath, $matches)) {
$bFoundMatch = true;