Skip to content

Commit

Permalink
Use strict equality when testing for 0
Browse files Browse the repository at this point in the history
  • Loading branch information
bsweeney committed Jan 22, 2016
1 parent cec9c29 commit 5f13a9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Helpers.php
Expand Up @@ -61,7 +61,7 @@ public static function build_url($protocol, $host, $base_path, $url)
}

// Is the url already fully qualified or a Data URI?
if (mb_strpos($url, "://") !== false || mb_strpos($url, "data:") == 0 || mb_strpos($url, "mailto:") === 0) {
if (mb_strpos($url, "://") !== false || mb_strpos($url, "data:") === 0 || mb_strpos($url, "mailto:") === 0) {
return $url;
}

Expand Down

3 comments on commit 5f13a9a

@bsweeney
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes a bug in URI resolution introduced in df0bc00.

@oussaki
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ive tried this but te image still not showing , im using the stable version 0.7

@bsweeney
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@oussaki can you post a new issue or start a dicussion so we can work out the details?

Please sign in to comment.