| @@ -1,8 +1,8 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Website: https://sourceforge.net/projects/simplehtmldom/ | |
| 4 | - * Additional projects that may be used: https://sourceforge.net/projects/debugobject/ | |
| 3 | + * Website: http://sourceforge.net/projects/simplehtmldom/ | |
| 4 | + * Additional projects that may be used: http://sourceforge.net/projects/debugobject/ | |
| 5 | 5 | * Acknowledge: Jose Solorzano (https://sourceforge.net/projects/php-html/) |
| 6 | 6 | * Contributions by: |
| 7 | 7 | * Yousuke Kumakura (Attribute filters) |
| 8 | 8 | * Vadim Voituk (Negative indexes supports of "find" method) |
| @@ -1032,9 +1032,9 @@ | ||
| 1032 | 1032 | function __construct($str=null, $lowercase=true, $forceTagsClosed=true, $target_charset=DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) |
| 1033 | 1033 | { |
| 1034 | 1034 | if ($str) |
| 1035 | 1035 | { |
| 1036 | - if (preg_match("/^https:\/\//i",$str) || is_file($str)) | |
| 1036 | + if (preg_match("/^http:\/\//i",$str) || is_file($str)) | |
| 1037 | 1037 | { |
| 1038 | 1038 | $this->load_file($str); |
| 1039 | 1039 | } |
| 1040 | 1040 | else |
| @@ -1064,9 +1064,9 @@ | ||
| 1064 | 1064 | // strip out cdata |
| 1065 | 1065 | $this->remove_noise("'<!\[CDATA\[(.*?)\]\]>'is", true); |
| 1066 | 1066 | // strip out comments |
| 1067 | 1067 | $this->remove_noise("'<!--(.*?)-->'is"); |
| 1068 | - // Per sourceforge https://sourceforge.net/tracker/?func=detail&aid=2949097&group_id=218559&atid=1044037 | |
| 1068 | + // Per sourceforge http://sourceforge.net/tracker/?func=detail&aid=2949097&group_id=218559&atid=1044037 | |
| 1069 | 1069 | // Script tags removal now preceeds style tag removal. |
| 1070 | 1070 | // strip out <script> tags |
| 1071 | 1071 | $this->remove_noise("'<\s*script[^>]*[^/]>(.*?)<\s*/\s*script\s*>'is"); |
| 1072 | 1072 | $this->remove_noise("'<\s*script\s*>(.*?)<\s*/\s*script\s*>'is"); |
| @@ -1220,9 +1220,9 @@ | ||
| 1220 | 1220 | } |
| 1221 | 1221 | |
| 1222 | 1222 | if (empty($charset)) |
| 1223 | 1223 | { |
| 1224 | - $el = $this->root->find('meta[https-equiv=Content-Type]',0, true); | |
| 1224 | + $el = $this->root->find('meta[http-equiv=Content-Type]',0, true); | |
| 1225 | 1225 | if (!empty($el)) |
| 1226 | 1226 | { |
| 1227 | 1227 | $fullvalue = $el->content; |
| 1228 | 1228 | if (is_object($debug_object)) {$debug_object->debug_log(2, 'meta content-type tag found' . $fullvalue);} |
| @@ -1505,9 +1505,9 @@ | ||
| 1505 | 1505 | |
| 1506 | 1506 | // parse attributes |
| 1507 | 1507 | protected function parse_attr($node, $name, &$space) |
| 1508 | 1508 | { |
| 1509 | - // Per sourceforge: https://sourceforge.net/tracker/?func=detail&aid=3061408&group_id=218559&atid=1044037 | |
| 1509 | + // Per sourceforge: http://sourceforge.net/tracker/?func=detail&aid=3061408&group_id=218559&atid=1044037 | |
| 1510 | 1510 | // If the attribute is already defined inside a tag, only pay atetntion to the first one as opposed to the last one. |
| 1511 | 1511 | if (isset($node->attr[$name])) |
| 1512 | 1512 | { |
| 1513 | 1513 | return; |
| @@ -1741,5 +1741,5 @@ | ||
| 1741 | 1741 | function getElementsByTagName($name, $idx=-1) {return $this->find($name, $idx);} |
| 1742 | 1742 | function loadFile() {$args = func_get_args();$this->load_file($args);} |
| 1743 | 1743 | } |
| 1744 | 1744 | |
| 1745 | -?> | |
| 1745 | +?> | |