aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/mvncache.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mvncache.php b/src/mvncache.php
index 7abb765..a3cfa7c 100644
--- a/src/mvncache.php
+++ b/src/mvncache.php
@@ -8,7 +8,7 @@ $config = require(__DIR__.'/config/config.inc.php');
initTheDevStackErrorHandler($config["logfile"]);
$requestedArtifact = $_SERVER["REQUEST_URI"];
-$requestedArtifact = str_replace('/mvn', '', $requestedArtifact);
+$requestedArtifact = preg_replace('/^\/mvn/', '', $requestedArtifact);
$baseLocalFolder = __DIR__.'/..';
$localFolder = $baseLocalFolder.substr($requestedArtifact, 0, strripos($requestedArtifact, '/'));