f-spot r3706 - in trunk: . src



Author: sdelcroix
Date: Wed Feb 20 20:14:36 2008
New Revision: 3706
URL: http://svn.gnome.org/viewvc/f-spot?rev=3706&view=rev

Log:
2008-02-20  Stephane Delcroix  <sdelcroix novell com>

	* src/PhotoStore.ce: don't escape uri while loading them from the db.
	Fixes bgo #517606.


Modified:
   trunk/ChangeLog
   trunk/src/PhotoStore.cs

Modified: trunk/src/PhotoStore.cs
==============================================================================
--- trunk/src/PhotoStore.cs	(original)
+++ trunk/src/PhotoStore.cs	Wed Feb 20 20:14:36 2008
@@ -197,7 +197,7 @@
 		while (reader.Read ()) {
 			uint version_id = Convert.ToUInt32 (reader [0]);
 			string name = reader[1].ToString ();
-			System.Uri uri = new System.Uri (reader[2].ToString ());
+			System.Uri uri = new System.Uri (reader[2].ToString (), true);
 			bool is_protected = Convert.ToBoolean (reader[3]);
 			photo.AddVersionUnsafely (version_id, uri, name, is_protected);
 		}
@@ -236,7 +236,7 @@
 			if (reader [1] != null) {
 				uint version_id = Convert.ToUInt32 (reader [1]);
 				string name = reader[2].ToString ();
-				System.Uri uri = new System.Uri (reader[3].ToString ());
+				System.Uri uri = new System.Uri (reader[3].ToString (), true);
 				bool is_protected = Convert.ToBoolean (reader[4]);	
 				photo.AddVersionUnsafely (version_id, uri, name, is_protected);
 			}
@@ -289,7 +289,7 @@
 		if (reader.Read ()) {
 			photo = new Photo (id,
 				Convert.ToInt64 (reader [0]),
-				new System.Uri (reader [1].ToString ()));
+				new System.Uri (reader [1].ToString (), true));
 
 			photo.Description = reader[2].ToString ();
 			photo.RollId = Convert.ToUInt32 (reader[3]);
@@ -522,7 +522,7 @@
 			if (photo == null) {
 				photo = new Photo (id,
 						   Convert.ToInt64 (reader [1]),
-						   new System.Uri (reader [2].ToString ()));
+						   new System.Uri (reader [2].ToString (), true));
 				
 				photo.Description = reader[3].ToString ();
 				photo.RollId = Convert.ToUInt32 (reader[4]);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]