[f-spot: 1/4] bgo#581961: UrlEncode string parameters in SmugMug export
- From: Stephane Delcroix <sdelcroix src gnome org>
- To: svn-commits-list gnome org
- Subject: [f-spot: 1/4] bgo#581961: UrlEncode string parameters in SmugMug export
- Date: Wed, 3 Jun 2009 05:20:36 -0400 (EDT)
commit 0a1e0ee1d3aac568232c3d779040c87a23357064
Author: Lorenzo Milesi <maxxer yetopen it>
Date: Wed Jun 3 08:54:40 2009 +0200
bgo#581961: UrlEncode string parameters in SmugMug export
---
.../SmugMugExport/SmugMugExport.addin.xml | 2 +-
.../Exporters/SmugMugExport/SmugMugNet/Makefile.am | 3 ++-
.../SmugMugExport/SmugMugNet/SmugMugApi.cs | 3 ++-
3 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/extensions/Exporters/SmugMugExport/SmugMugExport.addin.xml b/extensions/Exporters/SmugMugExport/SmugMugExport.addin.xml
index 5e4c6c6..ee23b1d 100644
--- a/extensions/Exporters/SmugMugExport/SmugMugExport.addin.xml
+++ b/extensions/Exporters/SmugMugExport/SmugMugExport.addin.xml
@@ -1,5 +1,5 @@
<Addin namespace="FSpot"
- version="0.6"
+ version="0.6.0.1"
name="SmugMug Export"
description="This extension allows you to export your photos to SmugMug."
author="F-Spot team"
diff --git a/extensions/Exporters/SmugMugExport/SmugMugNet/Makefile.am b/extensions/Exporters/SmugMugExport/SmugMugNet/Makefile.am
index 01720ed..fecbba2 100644
--- a/extensions/Exporters/SmugMugExport/SmugMugNet/Makefile.am
+++ b/extensions/Exporters/SmugMugExport/SmugMugNet/Makefile.am
@@ -6,7 +6,8 @@ ASSEMBLY_SOURCES = \
$(srcdir)/SmugMugApi.cs \
$(srcdir)/NoCheckCertificatePolicy.cs
-REFS =
+REFS = \
+ -r:System.Web
PKGS =
diff --git a/extensions/Exporters/SmugMugExport/SmugMugNet/SmugMugApi.cs b/extensions/Exporters/SmugMugExport/SmugMugNet/SmugMugApi.cs
index bc23939..d505448 100644
--- a/extensions/Exporters/SmugMugExport/SmugMugNet/SmugMugApi.cs
+++ b/extensions/Exporters/SmugMugExport/SmugMugNet/SmugMugApi.cs
@@ -17,6 +17,7 @@ using System.IO;
using System.Text.RegularExpressions;
using System.Xml;
using System.Collections.Specialized;
+using FSpot.Utils;
namespace SmugMugNet
{
@@ -430,7 +431,7 @@ namespace SmugMugNet
public SmugMugParam (string name, object value)
{
this.name = name;
- this.value = value;
+ this.value = (value is String ? System.Web.HttpUtility.UrlEncode ((string)value) : value);
}
public string Name
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]