]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix encoding for pref-feeds/add when called as a HTML page (closes #423)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 22 Feb 2012 09:54:47 +0000 (13:54 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 22 Feb 2012 09:54:47 +0000 (13:54 +0400)
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\"