Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Semicolon inserted in xml header #3

Open
loftux opened this issue Sep 25, 2014 · 0 comments
Open

Semicolon inserted in xml header #3

loftux opened this issue Sep 25, 2014 · 0 comments

Comments

@loftux
Copy link

loftux commented Sep 25, 2014

The rss xml output gets a ; in the xml header, thus making the xml invalid.
The problem is that the end question mark int the string is output with ; ?>
You can use this code in modules/Rss/views/rss.php to fix it

<?php
 header('Content-Type:application/xml');
?>
<?php
$questionmark = "?";
echo "<".$questionmark."xml version=\"1.0\" encoding=\"utf-8\"".$questionmark.">";
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant