fix encoding for pref-feeds/add when called as a HTML page (closes #423)

This commit is contained in:
Andrew Dolgov 2012-02-22 13:54:47 +04:00
parent 9dd22f1ec1
commit f4ce1d645e
1 changed files with 2 additions and 1 deletions

View File

@ -992,11 +992,12 @@ class Pref_Feeds extends Protected_Handler {
$auth_pass = db_escape_string(trim($_POST["auth_pass"])); $auth_pass = db_escape_string(trim($_POST["auth_pass"]));
if ($p_from != 'tt-rss') { if ($p_from != 'tt-rss') {
header("Content-Type: text/html"); header('Content-Type: text/html; charset=utf-8');
print "<html> print "<html>
<head> <head>
<title>Tiny Tiny RSS</title> <title>Tiny Tiny RSS</title>
<link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\"> <link rel=\"stylesheet\" type=\"text/css\" href=\"utility.css\">
<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>
</head> </head>
<body> <body>
<img class=\"floatingLogo\" src=\"images/ttrss_logo.png\" <img class=\"floatingLogo\" src=\"images/ttrss_logo.png\"