From cc70570e65f1baed53ffcfdb6fbef196d73f3d49 Mon Sep 17 00:00:00 2001 From: Romain Quetiez Date: Thu, 14 Mar 2013 14:46:51 +0000 Subject: [PATCH] #657 JavaScript error when modifying UserLDAP object with Sync SVN:trunk[2626] --- application/cmdbabstract.class.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index d6e522352..c7db07a77 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -546,6 +546,7 @@ abstract class cmdbAbstractObject extends CMDBObject implements iDisplay { $sTip .= "

Synchronized with {$aRow['name']} - {$aRow['description']}

"; } + $sTip = addslashes($sTip); $oPage->add_ready_script("$('#synchro_$sInputId').qtip( { content: '$sTip', show: 'mouseover', hide: 'mouseout', style: { name: 'dark', tip: 'leftTop' }, position: { corner: { target: 'rightMiddle', tooltip: 'leftTop' }} } );"); } @@ -2832,6 +2833,7 @@ EOF { $sTip .= "

Synchronized with {$aRow['name']} - {$aRow['description']}

"; } + $sTip = addslashes($sTip); $oPage->add_ready_script("$('#synchro_$sInputId').qtip( { content: '$sTip', show: 'mouseover', hide: 'mouseout', style: { name: 'dark', tip: 'leftTop' }, position: { corner: { target: 'rightMiddle', tooltip: 'leftTop' }} } );"); }