[Fusionforge-commits] r14552 - branches/Branch_5_1/src/common/tracker

Alain Peyrat aljeux at fusionforge.org
Wed Oct 5 18:56:24 CEST 2011


Author: aljeux
Date: 2011-10-05 18:56:24 +0200 (Wed, 05 Oct 2011)
New Revision: 14552

Modified:
   branches/Branch_5_1/src/common/tracker/Artifact.class.php
Log:
Drop extra slashes added in history
fix one typo

Modified: branches/Branch_5_1/src/common/tracker/Artifact.class.php
===================================================================
--- branches/Branch_5_1/src/common/tracker/Artifact.class.php	2011-10-05 16:43:33 UTC (rev 14551)
+++ branches/Branch_5_1/src/common/tracker/Artifact.class.php	2011-10-05 16:56:24 UTC (rev 14552)
@@ -744,7 +744,7 @@
 			$user_id=user_getid();
 			$user =& user_get_object($user_id);
 			if (!$user || !is_object($user)) {
-				$this->setError('ERROR - Logged In User Bug Could Not Get User Object');
+				$this->setError('ERROR - Logged In User But Could Not Get User Object');
 				return false;
 			}
 			//	we'll store this email even though it will likely never be used - 
@@ -803,7 +803,7 @@
 		return db_query_params ('INSERT INTO artifact_history(artifact_id,field_name,old_value,mod_by,entrydate) VALUES ($1,$2,$3,$4,$5)',
 					array ($this->getID(),
 					       $field_name,
-					       addslashes($old_value),
+					       $old_value,
 					       $user,
 					       $time)) ;
 	}
@@ -1334,7 +1334,7 @@
 					} else {
 						continue;
 					}
-				} elseif (addslashes(db_result($resd,0,'field_data')) == htmlspecialchars($extra_fields[$efid])) {
+				} elseif (db_result($resd,0,'field_data') == htmlspecialchars($extra_fields[$efid])) {
 					//element did not change
 					continue;
 				} else {




More information about the Fusionforge-commits mailing list