Skip to content

Commit

Permalink
Merge pull request #85 from TwistPHP/hotfix-routes-doubleslash
Browse files Browse the repository at this point in the history
Removed the double slash from the resource folder route
  • Loading branch information
ahosgood committed Mar 24, 2016
2 parents d440474 + c081ca9 commit 3384113
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/twist/Core/Utilities/Route.utility.php
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ public function placeholder($strURI = '/placeholder/%',$strControllerOverride =
protected function resourceServer(){

if(TWIST_ABOVE_DOCUMENT_ROOT){
$this->folder('/twist/Core/Resources%',sprintf('%s/Core/Resources',TWIST_FRAMEWORK));
$this->folder('/twist/Core/Resources%',sprintf('%s/Core/Resources',rtrim(TWIST_FRAMEWORK,'/')));
}
}

Expand Down

0 comments on commit 3384113

Please sign in to comment.