mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
TTTT228766 - Security Fix
This commit is contained in:
parent
6061955982
commit
0b7471e3df
@ -64,15 +64,15 @@
|
|||||||
<input type="hidden" name="hidden_toid" id="hidden_toid">
|
<input type="hidden" name="hidden_toid" id="hidden_toid">
|
||||||
<input type="hidden" name="draft_id" id="draft_id" value="{$DRAFTID}">
|
<input type="hidden" name="draft_id" id="draft_id" value="{$DRAFTID}">
|
||||||
{if !empty($smarty.request.message)}
|
{if !empty($smarty.request.message)}
|
||||||
<input type="hidden" name="message" value="{$smarty.request.message}">
|
<input type="hidden" name="message" value="{$smarty.request.message|@vtlib_purify}">{* crmv@211287 *}
|
||||||
<input type="hidden" name="message_mode" value="{$smarty.request.message_mode}">
|
<input type="hidden" name="message_mode" value="{$smarty.request.message_mode|@vtlib_purify}">{* crmv@211287 *}
|
||||||
{/if}
|
{/if}
|
||||||
<input type="hidden" name="uploaddir" value="{$UPLOADIR}">
|
<input type="hidden" name="uploaddir" value="{$UPLOADIR}">
|
||||||
{* crmv@2043m *}
|
{* crmv@2043m *}
|
||||||
{if $smarty.request.reply_mail_converter neq ''}
|
{if $smarty.request.reply_mail_converter neq ''}
|
||||||
<input type="hidden" name="reply_mail_converter" value="{$smarty.request.reply_mail_converter}">
|
<input type="hidden" name="reply_mail_converter" value="{$smarty.request.reply_mail_converter|@vtlib_purify}">{* crmv@211287 *}
|
||||||
<input type="hidden" name="reply_mail_converter_record" value="{$smarty.request.reply_mail_converter_record}">
|
<input type="hidden" name="reply_mail_converter_record" value="{$smarty.request.reply_mail_converter_record|@vtlib_purify}">{* crmv@211287 *}
|
||||||
<input type="hidden" name="reply_mail_user" value="{$smarty.request.reply_mail_user}">
|
<input type="hidden" name="reply_mail_user" value="{$smarty.request.reply_mail_user|@vtlib_purify}">{* crmv@211287 *}
|
||||||
{/if}
|
{/if}
|
||||||
{* crmv@2043me *}
|
{* crmv@2043me *}
|
||||||
{* crmv@62394 - activity tracking inputs *}
|
{* crmv@62394 - activity tracking inputs *}
|
||||||
@ -280,7 +280,6 @@
|
|||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<script type="text/javascript">checkAttachment('{$attach_files.url}', '{$attach_files.name}', '{$attach_files.contentid}', 'compose')</script> {* crmv@204525 *}
|
<script type="text/javascript">checkAttachment('{$attach_files.url}', '{$attach_files.name}', '{$attach_files.contentid}', 'compose')</script> {* crmv@204525 *}
|
||||||
|
|
||||||
{* crmv@121575e *}
|
{* crmv@121575e *}
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</table>
|
</table>
|
||||||
@ -482,6 +481,14 @@ jQuery(document).ready(function() {ldelim}
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
FileUploaded: function(up, file, info) {
|
FileUploaded: function(up, file, info) {
|
||||||
|
// crmv@228766
|
||||||
|
var response = JSON.parse(info.response);
|
||||||
|
if(response.hasOwnProperty('error')){
|
||||||
|
vtealert(response.error.message);
|
||||||
|
up.removeFile(file);
|
||||||
|
}
|
||||||
|
// crmv@228766e
|
||||||
|
|
||||||
// Called when a file has finished uploading
|
// Called when a file has finished uploading
|
||||||
jQuery('.plupload_buttons').show();
|
jQuery('.plupload_buttons').show();
|
||||||
jQuery('.plupload_upload_status').hide();
|
jQuery('.plupload_upload_status').hide();
|
||||||
@ -519,7 +526,7 @@ jQuery(document).ready(function() {ldelim}
|
|||||||
jQuery.ajax({
|
jQuery.ajax({
|
||||||
url: 'index.php',
|
url: 'index.php',
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
data: "module=Documents&action=DocumentsAjax&file=EmailFile&record={/literal}{$smarty.request.rec}{literal}",
|
data: "module=Documents&action=DocumentsAjax&file=EmailFile&record={/literal}{$smarty.request.rec|@vtlib_purify|escape:'quotes'}{literal}",//crmv@211287
|
||||||
success: function(result) {
|
success: function(result) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -689,4 +696,4 @@ function remove_attach(self) {
|
|||||||
|
|
||||||
{/literal}
|
{/literal}
|
||||||
</script>
|
</script>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user