[gnome-maps] osmEditDialog: URI-escape tel: URIs when copying to the phone field



commit c92c46bdb9a63de550b80e6e71afeeb042d3887b
Author: Marcus Lundblad <ml update uu se>
Date:   Mon Apr 25 22:48:49 2016 +0200

    osmEditDialog: URI-escape tel: URIs when copying to the phone field
    
    https://bugzilla.gnome.org/show_bug.cgi?id=765558

 src/osmEditDialog.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/osmEditDialog.js b/src/osmEditDialog.js
index 5513560..9f2fb8e 100644
--- a/src/osmEditDialog.js
+++ b/src/osmEditDialog.js
@@ -26,6 +26,7 @@ const Gio = imports.gi.Gio;
 const GLib = imports.gi.GLib;
 const Gtk = imports.gi.Gtk;
 const Lang = imports.lang;
+const Soup = imports.gi.Soup;
 
 const Application = imports.application;
 const Maps = imports.gi.GnomeMaps;
@@ -75,7 +76,7 @@ let _osmPhoneRewriteFunc = function(text) {
     if (GLib.uri_parse_scheme(text) === 'tel') {
         let afterTel = text.replace('tel:', '');
 
-        return afterTel.split(';')[0];
+        return Soup.uri_decode(afterTel.split(';')[0]);
     } else {
         return text;
     }


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