[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 185/219: Fix problem with invalid unicode seq
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 185/219: Fix problem with invalid unicode sequence |
Date: |
Mon, 18 Dec 2017 13:23:00 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit e418ed6b9dc39c7a0eddf17c3e18e204fe3dd54e
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 839caf8..1ee5d07 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] 183/219: Icon move / fix, (continued)
- [Noalyss-commit] [noalyss] 183/219: Icon move / fix, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 211/219: Bug : in recherche the ledger choice is transparent, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 162/219: Constant add an exception code for duplicate, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 190/219: Database : get_value throw an error if SQL failed, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 30/219: Task #0001443: opérations rapprochées : bug quand on utilise des tva avec autoliquidation 1. Correct export CSV 2. Improve code : new function Acc_Reconciliation:get_amount_noautovat, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 133/219: #0001414: LETTRAGE - montants différents non indiqués Les montants différents pour un lettrage sont marqués avec un triangle orange Changement des requêtes SQL , peut avoir un prob. de performance pour gros volume, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 70/219: Task #0001475: VEN / ACH opération prédéfinie , il manque le bouton "Fermer", Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 131/219: Bug : correct catch clause , getMessage is wrong must be replaced by message, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 203/219: Task #0001507: Click sur détail opérations apparaît trop haut Fixed for IE8 : use documentElement.scrollTop, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 191/219: Database : improve message when exec_sql failed, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 185/219: Fix problem with invalid unicode sequence,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 178/219: NEW : add iselect , display a list with options, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 200/219: Task #0001507: Click sur détail opérations apparaît trop haut Use the function window.pageYOffset instead of window.scrollY, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 123/219: Anc ODS : check date is valid and comment not empty, remove debug, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 52/219: task #0001372: Backup - nom du fichier Bug modele.inc.php, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 55/219: Task #1469 Code Cleaning: remove Anc_Account Use a CSS with 2 fonts , one for the title and clickable item, and a normal one. Correct Anc_Account_Table::check duplicate for update and insert, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 152/219: HttpInput: Exception if the type is not known,, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 05/219: remove warning, Dany De Bontridder, 2017/12/18
- [Noalyss-commit] [noalyss] 13/219: Move Noalyss_SQL.class.php do the lib folder, Dany De Bontridder, 2017/12/18