using more UTF-8, optimized the initial froxlor.sql statements, refs #1117
Signed-off-by: Arnold Bechtoldt <mail@arnoldbechtoldt.com>
This commit is contained in:
@@ -3187,7 +3187,7 @@ class ApsParser
|
||||
{
|
||||
$Temp.= '<textarea name="text" rows="10" cols="55">';
|
||||
$FileContent = file_get_contents('./packages/' . $Row['Path'] . '/license.txt');
|
||||
$Temp.= htmlentities($FileContent, ENT_QUOTES, 'ISO-8859-1');
|
||||
$Temp.= htmlentities($FileContent, ENT_QUOTES, 'UTF-8');
|
||||
$Temp.= '</textarea>';
|
||||
$Groupname = $lng['aps']['license'];
|
||||
$Fieldname = $lng['aps']['license'];
|
||||
@@ -3378,7 +3378,7 @@ class ApsParser
|
||||
if($license->text->name)$Temp = $license->text->name . '<br/>';
|
||||
$Temp.= '<form name="license" action="#"><textarea name="text" rows="10" cols="70">';
|
||||
$FileContent = file_get_contents('./packages/' . $Row['Path'] . '/license.txt');
|
||||
$Temp.= htmlentities($FileContent, ENT_QUOTES, 'ISO-8859-1');
|
||||
$Temp.= htmlentities($FileContent, ENT_QUOTES, 'UTF-8');
|
||||
$Temp.= '</textarea></form>';
|
||||
$Fieldname = $lng['aps']['license'];
|
||||
$Fieldvalue = $Temp;
|
||||
|
||||
@@ -56,7 +56,7 @@ class PHPMailer {
|
||||
* Sets the CharSet of the message.
|
||||
* @var string
|
||||
*/
|
||||
public $CharSet = 'iso-8859-1';
|
||||
public $CharSet = 'UTF-8';
|
||||
|
||||
/**
|
||||
* Sets the Content-type of the message.
|
||||
@@ -2317,4 +2317,4 @@ class phpmailerException extends Exception {
|
||||
return $errorMsg;
|
||||
}
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
@@ -89,7 +89,7 @@ class ticket
|
||||
// initialize purifier
|
||||
require_once dirname(dirname(__FILE__)).'/htmlpurifier/library/HTMLPurifier.auto.php';
|
||||
$config = HTMLPurifier_Config::createDefault();
|
||||
$config->set('Core.Encoding', 'ISO-8859-1'); // for now
|
||||
$config->set('Core.Encoding', 'UTF-8'); //htmlpurifier uses utf-8 anyway as default
|
||||
$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
|
||||
$this->_purifier = new HTMLPurifier($config);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user