- set correct config for special-characters (umlauts) in HTMLPurifier, refs #129
This commit is contained in:
@@ -140,6 +140,7 @@ if($page == 'tickets'
|
|||||||
$cananswer = 1;
|
$cananswer = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$row['subject'] = html_entity_decode($row['subject']);
|
||||||
if(strlen($row['subject']) > 20)
|
if(strlen($row['subject']) > 20)
|
||||||
{
|
{
|
||||||
$row['subject'] = substr($row['subject'], 0, 17) . '...';
|
$row['subject'] = substr($row['subject'], 0, 17) . '...';
|
||||||
|
|||||||
@@ -98,6 +98,7 @@ elseif($page == 'tickets')
|
|||||||
$cananswer = 0;
|
$cananswer = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$row['subject'] = html_entity_decode($row['subject']);
|
||||||
if(strlen($row['subject']) > 20)
|
if(strlen($row['subject']) > 20)
|
||||||
{
|
{
|
||||||
$row['subject'] = substr($row['subject'], 0, 17) . '...';
|
$row['subject'] = substr($row['subject'], 0, 17) . '...';
|
||||||
|
|||||||
@@ -88,7 +88,10 @@ class ticket
|
|||||||
|
|
||||||
// initialize purifier
|
// initialize purifier
|
||||||
require_once dirname(dirname(__FILE__)).'/htmlpurifier/library/HTMLPurifier.auto.php';
|
require_once dirname(dirname(__FILE__)).'/htmlpurifier/library/HTMLPurifier.auto.php';
|
||||||
$this->_purifier = new HTMLPurifier();
|
$config = HTMLPurifier_Config::createDefault();
|
||||||
|
$config->set('Core.Encoding', 'ISO-8859-1'); // for now
|
||||||
|
$config->set('HTML.Doctype', 'XHTML 1.0 Transitional');
|
||||||
|
$this->_purifier = new HTMLPurifier($config);
|
||||||
|
|
||||||
// initialize data array
|
// initialize data array
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user