From 21cf783144df0a1a6f0c03d891775f9648a6dbbd Mon Sep 17 00:00:00 2001 From: Ludovic Stephan Date: Fri, 9 Dec 2016 01:05:30 -0200 Subject: [PATCH] add special character encoding --- kfet/templates/kfet/kpsul.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index 9d44a09d..0363483f 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -245,12 +245,14 @@ $(document).ready(function() { if (account_data['id'] != 0) { var url_base = '{% url 'kfet.account.read' 'LIQ' %}'; url_base = url_base.substr(0, url_base.length - 3); - buttons += ''; + trigramme = encodeURIComponent(account_data['trigramme']) ; + buttons += ''; } if (account_data['id'] == 0) { var trigramme = triInput.val().toUpperCase(); var url_base = '{% url 'kfet.account.create' %}' if (isValidTrigramme(trigramme)) { + trigramme = encodeURIComponent(trigramme); buttons += ''; } }