[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 02/18: Fix problem with invalid unicode seque
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 02/18: Fix problem with invalid unicode sequence |
Date: |
Sun, 22 Apr 2018 09:30:28 -0400 (EDT) |
sparkyx pushed a commit to annotated tag rel6919-syn-180310
in repository noalyss.
commit 5dec196b3098dac1b4540c0bbd56654c50bb52de
Author: Dany DE BONTRIDDER <address@hidden>
Date: Fri Dec 8 13:30:11 2017 +0100
Fix problem with invalid unicode sequence
---
html/fid_card.php | 10 +++++-----
html/js/ajax_fiche.js | 1 +
2 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/html/fid_card.php b/html/fid_card.php
index fab07b3..3bc6e91 100644
--- a/html/fid_card.php
+++ b/html/fid_card.php
@@ -146,13 +146,13 @@ if (sizeof($sql) != 0 )
$sql_name=$cn->execute('get_name',array($sql[$i]['f_id'],23));
if (Database::num_row($sql_name) == 1)
$quick_code=Database::fetch_result($sql_name,0,0);
-
+ $fid=htmlentities($_REQUEST['FID']);
/* Highlight the found pattern with bold format */
-
$name=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($name));
-
$qcode=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($quick_code));
-
$desc=str_ireplace($_REQUEST['FID'],'<em>'.$_REQUEST['FID'].'</em>',h($desc));
- printf('<li id="%s">%s <span class="informal"> %s %s</span></li>',
+ $name=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($name));
+
$qcode=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($quick_code));
+ $desc=str_ireplace($_REQUEST['FID'],'<em>'.$fid.'</em>',h($desc));
+ printf('<li id="%s">%s <span class="informal">%s %s</span></li>',
$quick_code,
$quick_code,
$name,
diff --git a/html/js/ajax_fiche.js b/html/js/ajax_fiche.js
index 88503ed..28e7afb 100644
--- a/html/js/ajax_fiche.js
+++ b/html/js/ajax_fiche.js
@@ -116,6 +116,7 @@ function ajaxFid(p_ctl)
}
queryString=queryString+"&j="+jrn+'&gDossier='+gDossier;
queryString=queryString+'&ctl='+p_ctl.id;
+ queryString=encodeURI(queryString);
var action=new Ajax.Request (
"fid.php",
- [Noalyss-commit] [noalyss] annotated tag rel6919-syn-180310 created (now 23c7fc5), Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 04/18: fix bug with filter_card : encodeURI not needed, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 02/18: Fix problem with invalid unicode sequence,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 07/18: Accounting : error message if accounting is too large, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 06/18: Accounting : error message if accounting is too large, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 01/18: NEW : ICard , you can hide or show the accounting in the search box with the functions ICard->hide_accounting and ICard->show_accounting, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 08/18: set version 6919.7, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 03/18: Protect queryString with encodeURI, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 09/18: Task #0001507: Click sur détail opérations apparaît trop haut Use the function window.pageYOffset instead of window.scrollY, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 16/18: sorttable.js : alternate properly the color of the table rows, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 11/18: Calc : set 4 decimals, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 13/18: Merge from rel6919.7 Merge branch 'dev-6919.2' of ns3:/srv/git/noalyss into dev-6919.2, Dany De Bontridder, 2018/04/22
- [Noalyss-commit] [noalyss] 17/18: sorttable.js : Add an icon if the column is already sorted, Dany De Bontridder, 2018/04/22