Browse Source

Make sure that the ajax pages declare properly their charset as UTF-8. (Trac #198)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@631 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 years ago
parent
commit
fd4520caab
1 changed files with 2 additions and 0 deletions
  1. 2 0
      application/ajaxwebpage.class.inc.php

+ 2 - 0
application/ajaxwebpage.class.inc.php

@@ -42,6 +42,8 @@ class ajax_page extends WebPage
     {
     {
         parent::__construct($s_title);
         parent::__construct($s_title);
         $this->m_sReadyScript = "";
         $this->m_sReadyScript = "";
+		$this->add_header("Content-type: text/html; charset=utf-8");
+		$this->add_header("Cache-control: no-cache");
     }	
     }