[Xfce4-commits] <postler:master> A single leading ? is valid and should be ignored
Christian Dywan
noreply at xfce.org
Sun Mar 27 17:34:04 CEST 2011
Updating branch refs/heads/master
to 5c71fda25fccf80dad49db9c304075dfb16ece25 (commit)
from f794183fa6606ec97110cf2081ea6f4c5e747038 (commit)
commit 5c71fda25fccf80dad49db9c304075dfb16ece25
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Mar 27 15:08:08 2011 +0200
A single leading ? is valid and should be ignored
postler/postler-reader.vala | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/postler/postler-reader.vala b/postler/postler-reader.vala
index ebb067b..b593ece 100644
--- a/postler/postler-reader.vala
+++ b/postler/postler-reader.vala
@@ -127,6 +127,9 @@ public class Postler.Reader {
/* mailto: may or may not be stripped by the calling app */
if (mailto.has_prefix ("mailto:"))
mailto = mailto.substring (7, -1);
+ /* A single leading ? is valid and should be ignored */
+ if (mailto.has_prefix ("?"))
+ mailto = mailto.substring (1, -1);
string[] fields = mailto.split_set ("?&");
foreach (var field in fields) {
More information about the Xfce4-commits
mailing list