Skip to content

Commit 326e178

Browse files
committed
Merge pull request paquettg#29 from rhrebecek/master
FIX: File name is longer than the maximum allowed path
2 parents fe0c2e9 + 0fcd8d3 commit 326e178

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PHPHtmlParser/Dom.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function __get($name)
114114
public function load($str, $options = [])
115115
{
116116
// check if it's a file
117-
if (is_file($str))
117+
if (strpos($str, "\n") === FALSE && is_file($str))
118118
{
119119
return $this->loadFromFile($str, $options);
120120
}

0 commit comments

Comments
 (0)