diff --git a/htdocs/opensurvey/card.php b/htdocs/opensurvey/card.php
index 48a537b25e968..c1515267c83c3 100644
--- a/htdocs/opensurvey/card.php
+++ b/htdocs/opensurvey/card.php
@@ -207,24 +207,24 @@
print $langs->trans("Title") .'
';
if ($action == 'edit')
{
- print '';
+ print '';
}
-else print htmlentities($object->titre);
+else print dol_htmlentities($object->titre);
print ' | ';
// Auteur
print '';
print $langs->trans("Author") .' | ';
-print htmlentities($object->nom_admin);
+print dol_htmlentities($object->nom_admin);
print ' |
';
// Description
print ''.$langs->trans("Description") .' | ';
if ($action == 'edit')
{
- print ''."\n";
+ print ''."\n";
}
-else print dol_nl2br(htmlentities($object->commentaires));
+else print dol_nl2br(dol_htmlentities($object->commentaires));
print ' |
';
// EMail
@@ -330,7 +330,7 @@
print ' '.img_picto('', 'delete.png').' ';
}
- print htmlentities($comment->usercomment).': '.dol_nl2br(htmlentities($comment->comment))."
";
+ print dol_htmlentities($comment->usercomment).': '.dol_nl2br(dol_htmlentities($comment->comment))."
";
}
}
else
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index 53a200b2d656a..26754dcebac7d 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -94,11 +94,11 @@
print '';
print '';
print ''.img_picto('','object_opensurvey').' '.$obj->id_sondage.'';
- print ' | '.htmlentities($obj->titre).' | ';
+ print ' | '.dol_htmlentities($obj->titre).' | ';
$type=($obj->format=='A' || $obj->format=='A+')?'classic':'date';
print img_picto('',dol_buildpath('/opensurvey/img/'.($type == 'classic'?'chart-32.png':'calendar-32.png'),1),'width="16"',1);
print ' '.$langs->trans($type=='classic'?"TypeClassic":"TypeDate");
- print ' | '.htmlentities($obj->nom_admin).' | ';
+ print ''.dol_htmlentities($obj->nom_admin).' | ';
print ''.dol_print_date($db->jdate($obj->date_fin),'day');
if ($db->jdate($obj->date_fin) < time()) { print ' '.img_warning(); }
diff --git a/htdocs/opensurvey/public/studs.php b/htdocs/opensurvey/public/studs.php
index 96aa63104eb99..3a4b92e73375f 100644
--- a/htdocs/opensurvey/public/studs.php
+++ b/htdocs/opensurvey/public/studs.php
@@ -240,12 +240,12 @@
//affichage du titre du sondage
$titre=str_replace("\\","",$object->titre);
-print ''.htmlentities($titre).' '."\n";
+print ''.dol_htmlentities($titre).' '."\n";
//affichage des commentaires du sondage
if ($object->commentaires)
{
- $commentaires=dol_nl2br(htmlentities($object->commentaires));
+ $commentaires=dol_nl2br(dol_htmlentities($object->commentaires));
print $commentaires;
print ' '."\n";
}
@@ -335,7 +335,7 @@
for ($i=0; isset($toutsujet[$i]); $i++) {
$heures=explode('@',$toutsujet[$i]);
if (isset($heures[1])) {
- print ' | '.htmlentities($heures[1]).' | '."\n";
+ print ''.dol_htmlentities($heures[1]).' | '."\n";
} else {
print ' | '."\n";
}
@@ -392,7 +392,7 @@
print '
'."\n";
// Name
- print ''.htmlentities($obj->nom).' | '."\n";
+ print ''.dol_htmlentities($obj->nom).' | '."\n";
// si la ligne n'est pas a changer, on affiche les données
if (! $testligneamodifier)
@@ -650,7 +650,7 @@
else
{
$tmps=explode('@',$toutsujet[$i]);
- $meilleursujet .= htmlentities($tmps[0]);
+ $meilleursujet .= dol_htmlentities($tmps[0]);
}
$compteursujet++;
@@ -689,7 +689,7 @@
foreach ($comments as $obj) {
print '";
+ print dol_htmlentities($obj->usercomment).' : ";
}
}
diff --git a/htdocs/opensurvey/results.php b/htdocs/opensurvey/results.php
index cac6f7a4a9e8c..fe4c53d339002 100644
--- a/htdocs/opensurvey/results.php
+++ b/htdocs/opensurvey/results.php
@@ -691,7 +691,7 @@
for ($i = 0; isset($toutsujet[$i]); $i++) {
$heures=explode('@', $toutsujet[$i]);
if (isset($heures[1])) {
- print ''.htmlentities($heures[1]).' | '."\n";
+ print ''.dol_htmlentities($heures[1]).' | '."\n";
} else {
print ' | '."\n";
}
@@ -714,7 +714,7 @@
for ($i = 0; isset($toutsujet[$i]); $i++)
{
$tmp=explode('@',$toutsujet[$i]);
- print ''.htmlentities($tmp[0]).' | '."\n";
+ print ''.dol_htmlentities($tmp[0]).' | '."\n";
}
print ''.img_picto('',dol_buildpath('/opensurvey/img/add-16.png',1),'',1).' | '."\n";
@@ -750,7 +750,7 @@
}
// Name
- print ''.htmlentities($obj->nom).' | '."\n";
+ print ''.dol_htmlentities($obj->nom).' | '."\n";
// si la ligne n'est pas a changer, on affiche les données
if (! $testligneamodifier)
@@ -1017,7 +1017,7 @@
else
{
$tmps=explode('@',$toutsujet[$i]);
- $meilleursujet .= htmlentities($tmps[0]);
+ $meilleursujet .= dol_htmlentities($tmps[0]);
}
$compteursujet++;