Skip to content

Commit

Permalink
Fixed PHP trying to interpret code between <?xml and ?> if short_tags…
Browse files Browse the repository at this point in the history
… are enabled.
  • Loading branch information
AmauryCarrade committed Dec 6, 2016
1 parent e383fdc commit 9f4a72a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion views/atom.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
{{-- Some silly PHP interpreter will try to interpret code between <?xml and ?> --}}
{!! '<?xml version="1.0" encoding="utf-8"?>' !!}

<feed xmlns="http://www.w3.org/2005/Atom">

Expand Down
3 changes: 2 additions & 1 deletion views/rss.blade.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8" ?>
{{-- Some silly PHP interpreter will try to interpret code between <?xml and ?> --}}
{!! '<?xml version="1.0" encoding="utf-8"?>' !!}

<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom">

Expand Down

0 comments on commit 9f4a72a

Please sign in to comment.