[gnome-maps/gnome-3-20] osmEditDialog: URI-escape tel: URIs when copying to the phone field
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/gnome-3-20] osmEditDialog: URI-escape tel: URIs when copying to the phone field
- Date: Tue, 26 Apr 2016 19:19:30 +0000 (UTC)
commit 8aa77cfe37403a52061157d4b015520fc93f70a0
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]