Skip to content
Snippets Groups Projects
Commit 0bd53b20 authored by Prasad's avatar Prasad
Browse files

Fixes #1735: InStyle class not found.

parent d396bc7b
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
* All Rights Reserved.
*************************************************************************************/
vimport('~~/include/Webservices/Custom/ChangePassword.php');
vimport('~~/include/simplehtmldom/simple_html_dom.php');
vimport('~~/libraries/InStyle/InStyle.php');
class Users_SaveAjax_Action extends Vtiger_SaveAjax_Action {
......@@ -133,7 +135,7 @@ class Users_SaveAjax_Action extends Vtiger_SaveAjax_Action {
if($fieldName == 'signature'){
$requestData = $request->getAll();
$instyle = new InStyle();
$signature = $instyle->convertStylesToInlineCss($requestData['signature']);
$signature = $instyle->convertStylesToInlineCss($requestData['value']);
//#4823970 - Added to remove any action tags like <form>, <input>, <button>..
$fieldValue = vtlib_purify($signature);
// Purify malicious html event attributes
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment