Skip to content

Commit

Permalink
[jan] Fix loading of local files with basedir restrictions or libxml …
Browse files Browse the repository at this point in the history
…entity loading disabled.
  • Loading branch information
yunosh committed Mar 24, 2014
1 parent 34647e6 commit b1eb268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion framework/Feed/lib/Horde/Feed.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ public static function readFile($filename)
$doc = new DOMDocument;
$doc->recover = true;
$filename = urlencode($filename);
$loaded = $doc->load($filename);
$loaded = $doc->loadXML(file_get_contents($filename));
if (!$loaded) {
$loaded = $doc->loadHTMLFile($filename);
if (!$loaded) {
Expand Down
4 changes: 2 additions & 2 deletions framework/Feed/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</stability>
<license uri="http://www.horde.org/licenses/bsd">BSD-2-Clause</license>
<notes>
*
* [jan] Fix loading of local files with basedir restrictions or libxml entity loading disabled.
</notes>
<contents>
<dir baseinstalldir="/" name="/">
Expand Down Expand Up @@ -705,7 +705,7 @@
<date>2012-11-19</date>
<license uri="http://www.horde.org/licenses/bsd">BSD-2-Clause</license>
<notes>
*
* [jan] Fix loading of local files with basedir restrictions or libxml entity loading disabled.
</notes>
</release>
</changelog>
Expand Down

0 comments on commit b1eb268

Please sign in to comment.