From 129f56df5d5cad6184df4c9d81bf586c8691db59 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 9 Oct 2017 10:53:34 +0200 Subject: [PATCH] tel: links use no URL encoding according to rfc3966 section-5.1.4 --- api/js/etemplate/et2_widget_url.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/api/js/etemplate/et2_widget_url.js b/api/js/etemplate/et2_widget_url.js index bc8a28cfb0..9f8cd83360 100644 --- a/api/js/etemplate/et2_widget_url.js +++ b/api/js/etemplate/et2_widget_url.js @@ -167,7 +167,9 @@ var et2_url = (function(){ "use strict"; return et2_textbox.extend( else if (this.egw().config("call_link")) { var link = this.egw().config("call_link") - .replace("%1", encodeURIComponent(value)) + // tel: links use no URL encoding according to rfc3966 section-5.1.4 + .replace("%1", this.egw().config("call_link").substr(0, 4) == 'tel:' ? + value : encodeURIComponent(value)) .replace("%u",this.egw().user('account_lid')) .replace("%t",this.egw().user('account_phone')); var popup = this.egw().config("call_popup");