Skip to content
This repository has been archived by the owner on Mar 26, 2022. It is now read-only.

Commit

Permalink
add https support
Browse files Browse the repository at this point in the history
  • Loading branch information
yangqi committed Sep 10, 2015
1 parent 048b363 commit eee67c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Yangqi/Htmldom/Htmldom.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public function __construct($str=null, $lowercase=true, $forceTagsClosed=true, $
{
if ($str)
{
if (preg_match("/^http:\/\//i",$str) || is_file($str))
if (preg_match("/^(http|https):\/\//i",$str) || is_file($str))
{
$this->load_file($str);
}
Expand Down

0 comments on commit eee67c0

Please sign in to comment.