[Fusionforge-commits] r9009 - trunk/gforge/common/docman

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Wed Mar 10 21:50:13 CET 2010


Author: aljeux
Date: 2010-03-10 21:50:13 +0100 (Wed, 10 Mar 2010)
New Revision: 9009

Modified:
   trunk/gforge/common/docman/Document.class.php
Log:
Fix docman (slash problem)

Modified: trunk/gforge/common/docman/Document.class.php
===================================================================
--- trunk/gforge/common/docman/Document.class.php	2010-03-10 20:50:07 UTC (rev 9008)
+++ trunk/gforge/common/docman/Document.class.php	2010-03-10 20:50:13 UTC (rev 9009)
@@ -146,7 +146,7 @@
 
 		// key words for in-document search
 		$kw = new Parsedata ($this->engine_path);
-		$kwords = $kw->get_parse_data (stripslashes($data1), htmlspecialchars($title), htmlspecialchars($description), $filetype);
+		$kwords = $kw->get_parse_data ($data1, htmlspecialchars($title), htmlspecialchars($description), $filetype);
 
 		$filesize = strlen($data);
 
@@ -164,7 +164,7 @@
 						$filename,
 						$filetype,
 						$filesize,
-						base64_encode(stripslashes($data)),
+						base64_encode($data),
 						$kwords,
 						$user_id));
 		if (!$result) {
@@ -491,7 +491,7 @@
 
 			// key words for in-document search
 			$kw = new Parsedata ($this->engine_path);
-			$kwords = $kw->get_parse_data (stripslashes($data1), htmlspecialchars($title), htmlspecialchars($description), $filetype);
+			$kwords = $kw->get_parse_data ($data1, htmlspecialchars($title), htmlspecialchars($description), $filetype);
 
 			$res = db_query_params ('UPDATE doc_data SET data=$1, filesize=$2, data_words=$3 WHERE group_id=$4 AND docid=$5',
 						array (base64_encode($data),




More information about the Fusionforge-commits mailing list