#208 Fix rendering of HTML and for signatures
This commit is contained in:
parent
9dd83e9f41
commit
f75cc87c10
@ -138,14 +138,20 @@ if (strlen($message))
|
||||
// Attach signature to the message?
|
||||
if ( ! $submit_as_customer && ! empty($_POST['signature']))
|
||||
{
|
||||
if ($modsForHesk_settings['rich_text_for_tickets']) {
|
||||
$message .= "<br><br>" . nl2br($_SESSION['signature']) . "<br>";
|
||||
} else {
|
||||
$message .= "\n\n" . addslashes($_SESSION['signature']) . "\n";
|
||||
}
|
||||
}
|
||||
|
||||
if (!$modsForHesk_settings['rich_text_for_tickets']) {
|
||||
// Make links clickable
|
||||
$message = hesk_makeURL($message);
|
||||
|
||||
// Turn newlines into <br /> tags
|
||||
$message = nl2br($message);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -37,6 +37,7 @@ define('HESK_PATH','../');
|
||||
|
||||
// Get all the required files and functions
|
||||
require(HESK_PATH . 'hesk_settings.inc.php');
|
||||
require(HESK_PATH . 'modsForHesk_settings.inc.php');
|
||||
require(HESK_PATH . 'inc/common.inc.php');
|
||||
require(HESK_PATH . 'inc/admin_functions.inc.php');
|
||||
hesk_load_database_functions();
|
||||
@ -269,8 +270,10 @@ if ($hesk_settings['attachments']['use'] && !empty($attachments))
|
||||
}
|
||||
}
|
||||
|
||||
$tmpvar['message']=hesk_makeURL($tmpvar['message']);
|
||||
$tmpvar['message']=nl2br($tmpvar['message']);
|
||||
if (!$modsForHesk_settings['rich_text_for_tickets']) {
|
||||
$tmpvar['message']=hesk_makeURL($tmpvar['message']);
|
||||
$tmpvar['message']=nl2br($tmpvar['message']);
|
||||
}
|
||||
|
||||
$tmpvar['latitude'] = hesk_POST('latitude', 'E-4');
|
||||
$tmpvar['longitude'] = hesk_POST('longitude', 'E-4');
|
||||
|
||||
@ -1395,7 +1395,7 @@ require_once(HESK_PATH . 'inc/show_admin_nav.inc.php');
|
||||
<div class="ticketMessageBottom">
|
||||
<!-- Message -->
|
||||
<p><b><?php echo $hesklang['message']; ?>:</b></p>
|
||||
<p class="message"><?php echo hesk_html_entity_decode($ticket['message']); ?><br /> </p>
|
||||
<div class="message"><?php echo hesk_html_entity_decode($ticket['message']); ?></div>
|
||||
</div>
|
||||
<div class="ticketMessageTop">
|
||||
<!-- Custom Fields after Message -->
|
||||
|
||||
@ -193,11 +193,16 @@
|
||||
font-size: 15px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.ticketMessageBottom > p.message {
|
||||
.ticketMessageBottom > .message {
|
||||
margin-bottom: 0px;
|
||||
|
||||
}
|
||||
|
||||
.message > ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ticketMessage {
|
||||
margin-left: 238px;
|
||||
background: #fff;
|
||||
|
||||
@ -196,11 +196,16 @@
|
||||
font-size: 15px;
|
||||
background-color: #fff;
|
||||
}
|
||||
.ticketMessageBottom > p.message {
|
||||
.ticketMessageBottom > .message {
|
||||
margin-bottom: 0px;
|
||||
|
||||
}
|
||||
|
||||
.ticketMessageBottom > ul {
|
||||
margin-top: 0;
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
.ticketMessage {
|
||||
margin-right: 238px;
|
||||
background: #fff;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user