';
if ($action == 'edit') {
- print '';
+ print '';
} else {
print dol_htmlentities($object->title);
}
diff --git a/htdocs/public/error-401.php b/htdocs/public/error-401.php
index bae712ec095..3d453cd30e5 100644
--- a/htdocs/public/error-401.php
+++ b/htdocs/public/error-401.php
@@ -21,7 +21,7 @@
Sorry. You are not allowed to access this resource.
-
+
diff --git a/htdocs/public/error-404.php b/htdocs/public/error-404.php
index 680b9e4a77c..c964e49cd85 100644
--- a/htdocs/public/error-404.php
+++ b/htdocs/public/error-404.php
@@ -21,7 +21,7 @@
You requested a website or a page that does not exists.
-
+
diff --git a/htdocs/societe/consumption.php b/htdocs/societe/consumption.php
index f74758296a9..62bcbed5ff1 100644
--- a/htdocs/societe/consumption.php
+++ b/htdocs/societe/consumption.php
@@ -361,7 +361,8 @@ if (!empty($sql_select)) {
$sql .= " AND ".$doc_number." LIKE '%".$db->escape($sref)."%'";
}
if ($sprod_fulldescr) {
- $sql .= " AND (d.description LIKE '%".$db->escape($sprod_fulldescr)."%' OR d.description LIKE '%".$db->escape(dol_htmlentities($sprod_fulldescr))."%'";
+ // We test both case description is correctly saved of was save after dol_escape_htmltag().
+ $sql .= " AND (d.description LIKE '%".$db->escape($sprod_fulldescr)."%' OR d.description LIKE '%".$db->escape(dol_escape_htmltag($sprod_fulldescr))."%'";
if (GETPOST('type_element') != 'fichinter') {
$sql .= " OR p.ref LIKE '%".$db->escape($sprod_fulldescr)."%'";
}