fixes replacing /mvn multiple times in the artifact path. only the first match needs be replaced
This commit is contained in:
parent
3ac6059824
commit
6ca8374504
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ $config = require(__DIR__.'/config/config.inc.php');
|
||||||
initTheDevStackErrorHandler($config["logfile"]);
|
initTheDevStackErrorHandler($config["logfile"]);
|
||||||
|
|
||||||
$requestedArtifact = $_SERVER["REQUEST_URI"];
|
$requestedArtifact = $_SERVER["REQUEST_URI"];
|
||||||
$requestedArtifact = str_replace('/mvn', '', $requestedArtifact);
|
$requestedArtifact = preg_replace('/^\/mvn/', '', $requestedArtifact);
|
||||||
$baseLocalFolder = __DIR__.'/..';
|
$baseLocalFolder = __DIR__.'/..';
|
||||||
$localFolder = $baseLocalFolder.substr($requestedArtifact, 0, strripos($requestedArtifact, '/'));
|
$localFolder = $baseLocalFolder.substr($requestedArtifact, 0, strripos($requestedArtifact, '/'));
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue