[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-cvs] dolibarr/htdocs product.class.php product/fiche...
From: |
Regis Houssin |
Subject: |
[Dolibarr-cvs] dolibarr/htdocs product.class.php product/fiche... |
Date: |
Wed, 07 Jun 2006 16:02:18 +0000 |
CVSROOT: /cvsroot/dolibarr
Module name: dolibarr
Changes by: Regis Houssin <hregis> 06/06/07 16:02:18
Modified files:
htdocs : product.class.php
htdocs/product : fiche.php
Log message:
A vérifier mais j'ai du ajouter encore des addslashes car il ne prenait
plus les quotes
dans le libellé, la description et note
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product.class.php?cvsroot=dolibarr&r1=1.109&r2=1.110
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/product/fiche.php?cvsroot=dolibarr&r1=1.146&r2=1.147
Patches:
Index: product.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product.class.php,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -b -r1.109 -r1.110
--- product.class.php 2 Jun 2006 17:40:03 -0000 1.109
+++ product.class.php 7 Jun 2006 16:02:18 -0000 1.110
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: product.class.php,v 1.109 2006/06/02 17:40:03 hregis Exp $
+ * $Id: product.class.php,v 1.110 2006/06/07 16:02:18 hregis Exp $
* $Source: /cvsroot/dolibarr/dolibarr/htdocs/product.class.php,v $
*/
@@ -25,7 +25,7 @@
\file htdocs/product.class.php
\ingroup produit
\brief Fichier de la classe des produits prédéfinis
- \version $Revision: 1.109 $
+ \version $Revision: 1.110 $
*/
@@ -208,9 +208,9 @@
if (! $this->libelle) $this->libelle = 'LIBELLE MANQUANT';
$this->ref = trim(sanitize_string($this->ref));
- $this->libelle = trim($this->libelle);
- $this->description = trim($this->description);
- $this->note = trim($this->note);
+ $this->libelle = trim(addslashes($this->libelle));
+ $this->description = trim(addslashes($this->description));
+ $this->note = trim(addslashes($this->note));
$sql = "UPDATE ".MAIN_DB_PREFIX."product ";
$sql .= " SET label = '" . addslashes($this->libelle) ."'";
Index: product/fiche.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/product/fiche.php,v
retrieving revision 1.146
retrieving revision 1.147
diff -u -b -r1.146 -r1.147
--- product/fiche.php 21 May 2006 00:04:53 -0000 1.146
+++ product/fiche.php 7 Jun 2006 16:02:18 -0000 1.147
@@ -19,7 +19,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: fiche.php,v 1.146 2006/05/21 00:04:53 eldy Exp $
+ * $Id: fiche.php,v 1.147 2006/06/07 16:02:18 hregis Exp $
* $Source: /cvsroot/dolibarr/dolibarr/htdocs/product/fiche.php,v $
*/
@@ -27,7 +27,7 @@
\file htdocs/product/fiche.php
\ingroup product
\brief Page de la fiche produit
- \version $Revision: 1.146 $
+ \version $Revision: 1.147 $
*/
require("./pre.inc.php");
@@ -1115,5 +1115,5 @@
$db->close();
-llxFooter('$Date: 2006/05/21 00:04:53 $ - $Revision: 1.146 $');
+llxFooter('$Date: 2006/06/07 16:02:18 $ - $Revision: 1.147 $');
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Dolibarr-cvs] dolibarr/htdocs product.class.php product/fiche...,
Regis Houssin <=