tomboy r1883 - in trunk: . Tomboy
- From: btimothy svn gnome org
- To: svn-commits-list gnome org
- Subject: tomboy r1883 - in trunk: . Tomboy
- Date: Fri, 22 Feb 2008 22:47:58 +0000 (GMT)
Author: btimothy
Date: Fri Feb 22 22:47:57 2008
New Revision: 1883
URL: http://svn.gnome.org/viewvc/tomboy?rev=1883&view=rev
Log:
* Tomboy/NoteEditor.cs: Uri escape file paths so files with spaces that
are dragged from Nautilus will be inserted into Tomboy with a full
link to the file. Fix for bug #303902.
Modified:
trunk/ChangeLog
trunk/Tomboy/NoteEditor.cs
Modified: trunk/Tomboy/NoteEditor.cs
==============================================================================
--- trunk/Tomboy/NoteEditor.cs (original)
+++ trunk/Tomboy/NoteEditor.cs Fri Feb 22 22:47:57 2008
@@ -141,10 +141,13 @@
foreach (Uri uri in uri_list) {
Logger.Log ("Got Dropped URI: {0}", uri);
string insert;
- if (uri.IsFile)
- insert = uri.LocalPath;
- else
+ if (uri.IsFile) {
+ // URL-escape the path in case
+ // there are spaces (bug #303902)
+ insert = System.Uri.EscapeUriString (uri.LocalPath);
+ } else {
insert = uri.ToString ();
+ }
if (insert == null || insert.Trim () == String.Empty)
continue;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]