Skip to content

Commit

Permalink
Account for paths with protocols
Browse files Browse the repository at this point in the history
  • Loading branch information
foaly-nr1 committed Nov 30, 2015
1 parent 5639652 commit 1629f7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,8 +275,8 @@ private function convertFormat($format)
private function checkImage($path)
{
// remove explicit format if present
if(strpos($path, ':') !== false) {
$path = explode(':', $path);
if(preg_match("/:(?!\/\/)/", $path) === 1) {
$path = preg_split("/:(?!\/\/)/", $path);
$path = $path[1];
}

Expand Down

0 comments on commit 1629f7d

Please sign in to comment.