From e5c08978c3df114bdf4fc6e64fcb7d31016c40ff Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 15 Mar 2019 15:13:28 +0100 Subject: [PATCH] FIX Param keepn must be 1 when dol_escape_htmltag used for textarea --- htdocs/core/lib/functions.lib.php | 2 +- htdocs/don/card.php | 4 ++-- htdocs/expensereport/card.php | 4 ++-- htdocs/projet/card.php | 2 +- htdocs/public/members/new.php | 4 ++-- htdocs/public/opensurvey/studs.php | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php index c302093c2d1..fbca9c33ca5 100644 --- a/htdocs/core/lib/functions.lib.php +++ b/htdocs/core/lib/functions.lib.php @@ -923,7 +923,7 @@ function dol_escape_js($stringtoescape, $mode = 0, $noescapebackslashn = 0) * * @param string $stringtoescape String to escape * @param int $keepb 1=Preserve b tags (otherwise, remove them) - * @param int $keepn 1=Preserve \r\n strings (otherwise, replace them with escaped value) + * @param int $keepn 1=Preserve \r\n strings (otherwise, replace them with escaped value). Set to 1 when escaping for a '; + print ''; // Zip / Town print ''.$langs->trans("Zip").' / '.$langs->trans("Town").''; @@ -544,7 +544,7 @@ if ( $object->socid && ! empty($conf->societe->enabled) && ! empty($conf->global print ''.$langs->trans("Lastname").''; print ''.$langs->trans("Firstname").''; print ''.$langs->trans("Address").''; - print ''; + print ''; // Zip / Town print ''.$langs->trans("Zip").' / '.$langs->trans("Town").''; diff --git a/htdocs/expensereport/card.php b/htdocs/expensereport/card.php index 613efa62c70..819014a092e 100644 --- a/htdocs/expensereport/card.php +++ b/htdocs/expensereport/card.php @@ -2154,7 +2154,7 @@ else // Add comments print ''; - print ''; + print ''; print ''; // VAT @@ -2399,7 +2399,7 @@ else // Add comments print ''; - print ''; + print ''; print ''; // Select VAT diff --git a/htdocs/projet/card.php b/htdocs/projet/card.php index 8089b66680d..362359f0999 100644 --- a/htdocs/projet/card.php +++ b/htdocs/projet/card.php @@ -616,7 +616,7 @@ if ($action == 'create' && $user->rights->projet->creer) // Description print ''.$langs->trans("Description").''; print ''; - print ''; + print ''; print ''; // Bill time diff --git a/htdocs/public/members/new.php b/htdocs/public/members/new.php index 6ff856ed238..873a6858a1a 100644 --- a/htdocs/public/members/new.php +++ b/htdocs/public/members/new.php @@ -594,7 +594,7 @@ print ''; print ''.$langs->trans("Company").''."\n"; // Address print ''.$langs->trans("Address").''."\n"; -print ''."\n"; +print ''."\n"; // Zip / Town print ''.$langs->trans('Zip').' / '.$langs->trans('Town').''; print $formcompany->select_ziptown(GETPOST('zipcode'), 'zipcode', array('town','selectcountry_id','state_id'), 6, 1); @@ -649,7 +649,7 @@ include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_add.tpl.php'; // Comments print ''; print ''.$langs->trans("Comments").''; -print ''; +print ''; print ''."\n"; // Add specific fields used by Dolibarr foundation for example diff --git a/htdocs/public/opensurvey/studs.php b/htdocs/public/opensurvey/studs.php index baa1e539a3b..d242b2df3c1 100644 --- a/htdocs/public/opensurvey/studs.php +++ b/htdocs/public/opensurvey/studs.php @@ -752,7 +752,7 @@ if ($comments) if ($object->allow_comments) { print '
' .$langs->trans("AddACommentForPoll") . "
\n"; - print '
'."\n"; + print '
'."\n"; print $langs->trans("Name") .': '; print '   '."\n"; print '
'."\n";