mirror of
https://github.com/OpenXE-org/OpenXE.git
synced 2024-11-14 20:17:14 +01:00
Ticket system / sendmail, changes to response citation and html chars handling
This commit is contained in:
parent
3c1e7e0949
commit
4af7eacfd8
@ -32483,15 +32483,10 @@ function MailSendFinal($from,$from_name,$to,$to_name,$betreff,$text,$files="",$p
|
||||
$text = $this->ReadyForPDF($text);
|
||||
$text = str_replace('€','€',$text);
|
||||
|
||||
$texthtml = htmlspecialchars_decode(
|
||||
/* $text = htmlspecialchars_decode(
|
||||
htmlentities($text, ENT_NOQUOTES, 'UTF-8', false)
|
||||
, ENT_NOQUOTES
|
||||
);
|
||||
|
||||
if($texthtml!=$text)
|
||||
{
|
||||
$text = $texthtml;
|
||||
}
|
||||
); */
|
||||
|
||||
if($signature)
|
||||
{
|
||||
|
@ -615,7 +615,12 @@ class Ticket {
|
||||
break;
|
||||
case 'zitat':
|
||||
if (!empty($drafted_messages) && !empty($recv_messages)) {
|
||||
$sql = "UPDATE ticket_nachricht SET text='".$drafted_messages[0]['text']."<br /><br />--------------------<br />".$recv_messages[0]['verfasser']." <".$recv_messages[0]['mail']."> (".$recv_messages[0]['zeit']."): <br />".$recv_messages[0]['text']."' WHERE id=".$drafted_messages[0]['id'];
|
||||
|
||||
$nl = "<br />";
|
||||
$citation_info =$recv_messages[0]['zeit']." ".$recv_messages[0]['verfasser']." <".$recv_messages[0]['mail'].">";
|
||||
$text = $drafted_messages[0]['text'].$nl.$nl.$citation_info.":".$nl."<blockquote type=\"cite\">".$recv_messages[0]['text']."</blockquote>";
|
||||
|
||||
$sql = "UPDATE ticket_nachricht SET text='".$text."' WHERE id=".$drafted_messages[0]['id'];
|
||||
$this->app->DB->Update($sql);
|
||||
header("Location: index.php?module=ticket&action=edit&id=$id");
|
||||
$this->app->ExitXentral();
|
||||
@ -657,8 +662,8 @@ class Ticket {
|
||||
$drafted_messages[0]['verfasser_replyto'],
|
||||
$to,
|
||||
$to,
|
||||
$drafted_messages[0]['betreff'],
|
||||
$drafted_messages[0]['text'],
|
||||
htmlentities($drafted_messages[0]['betreff']),
|
||||
htmlentities($drafted_messages[0]['text']),
|
||||
$files,
|
||||
0,
|
||||
true,
|
||||
|
Loading…
Reference in New Issue
Block a user