fix DealerDemo and other stuff
This commit is contained in:
@@ -21,7 +21,7 @@ bgcolor=00292f
|
||||
<table cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=560 height=96 valign=top>
|
||||
<table background="wtv-guide:/ROMCache/help/common/helpMastheadBlank.swf" width=560 height=96 cellspacing=0 cellpadding=0>
|
||||
<table background="wtv-mail:/ROMCache/help/common/helpMastheadBlank.swf" width=560 height=96 cellspacing=0 cellpadding=0>
|
||||
<tr>
|
||||
<td width=107 height=96 valign=top rowspan=2>
|
||||
<spacer type=vertical height=7><br>
|
||||
|
||||
@@ -281,6 +281,7 @@ ${username}@${minisrv_config.config.service_name}
|
||||
`;
|
||||
Object.keys(message_list).forEach(function (k) {
|
||||
var message = message_list[k];
|
||||
if (typeof message.subject == "object" && message.subject) message.subject = wtvshared.decodeBufferText(message.subject);
|
||||
var message_font_open = "<font color=#7A9FCC>";
|
||||
var message_font_close = "</font>";
|
||||
if (message.unread) {
|
||||
|
||||
@@ -40,6 +40,7 @@ Location: wtv-mail:/listmail`;
|
||||
headers = `200 OK
|
||||
Content-type: text/html`;
|
||||
|
||||
if (typeof message.subject == "object" && message.subject) message.subject = wtvshared.decodeBufferText(message.subject);
|
||||
data = `<wtvnoscript>
|
||||
<sendpanel
|
||||
action = "wtv-mail:/sendmail?message_forward_id=14&mailbox_name=inbox"
|
||||
@@ -257,8 +258,7 @@ ${wtvshared.htmlEntitize(message.to_addr)} ${(message.to_name) ? '(' + wtvshared
|
||||
<td nowrap valign=top>
|
||||
Subject: <td>
|
||||
<td>`;
|
||||
|
||||
if (typeof message.subject == "object") message.subject = new Buffer.from(message.subject).toString('latin1');
|
||||
|
||||
data += `
|
||||
${(message.subject) ? wtvshared.htmlEntitize(message.subject) : '(No subject)'}
|
||||
<tr>
|
||||
@@ -278,7 +278,7 @@ ${wtvshared.htmlEntitize(message.body, true)}
|
||||
<br>
|
||||
<br>`;
|
||||
if (message.signature) {
|
||||
data += ssid_sessions[socket.ssid].mailstore.sanitizeSignature(message.signature);
|
||||
data += wtvshared.sanitizeSignature(message.signature);
|
||||
}
|
||||
data += `<p>
|
||||
`;
|
||||
|
||||
@@ -61,7 +61,7 @@ Content-Type: audio/wav`;
|
||||
} else {
|
||||
|
||||
var username = ssid_sessions[socket.ssid].getSessionData("subscriber_username");
|
||||
var userdisplayname = html_entities.encode(ssid_sessions[socket.ssid].getSessionData("subscriber_name"));
|
||||
var userdisplayname = wtvshared.htmlEntitize(ssid_sessions[socket.ssid].getSessionData("subscriber_name"));
|
||||
var address = username + "@" + minisrv_config.config.service_name
|
||||
var notImplementedAlert = new clientShowAlert({
|
||||
'image': minisrv_config.config.service_logo,
|
||||
@@ -413,7 +413,7 @@ vlink=#62B362
|
||||
vspace=0
|
||||
hspace=0>`;
|
||||
if (ssid_sessions[socket.ssid].getSessionData("subscriber_signature") && ssid_sessions[socket.ssid].getSessionData("subscriber_signature") != "" && !no_signature) {
|
||||
data += ssid_sessions[socket.ssid].mailstore.sanitizeSignature(ssid_sessions[socket.ssid].getSessionData("subscriber_signature"));
|
||||
data += wtvshared.sanitizeSignature(ssid_sessions[socket.ssid].getSessionData("subscriber_signature"));
|
||||
}
|
||||
data += `
|
||||
<td abswidth=2 bgcolor=#000000>
|
||||
|
||||
Reference in New Issue
Block a user