]> git.wh0rd.org - tt-rss.git/blobdiff - classes/pref_feeds.php
fix encoding for pref-feeds/add when called as a HTML page (closes #423)
[tt-rss.git] / classes / pref_feeds.php
index 442eaba3ce09d819628e53e6085b6a47f60506c0..aef39f33393caa56064c23a018ac6abaa32ce41a 100644 (file)
@@ -992,11 +992,12 @@ class Pref_Feeds extends Protected_Handler {
                $auth_pass = db_escape_string(trim($_POST["auth_pass"]));
 
                if ($p_from != 'tt-rss') {
-                       header("Content-Type: text/html");
+                       header('Content-Type: text/html; charset=utf-8');
                        print "<html>
                                <head>
                                        <title>Tiny Tiny RSS</title>
                                        <link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\">
+                                       <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
                                </head>
                                <body>
                                <img class=\"floatingLogo\" src=\"images/ttrss_logo.png\"