NobGit
public nobgit read

NobMail

Based on mailcow: dockerized

Languages

Repository composition by tracked source files.

PHP
PHP 49% JavaScript 35% HTML 9% CSS 4% Shell 2% Python 1% Lua 0% Perl 0% Ruby 0% SCSS 0%
Create file Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git

Commit

[Web] Fix urlencoded objects in api

64dbd544
AndrĂ© Peters <[email protected]> 8 years ago
data/web/js/api.js | 4 ++++
 1 file changed, 4 insertions(+)

Diff

diff --git a/data/web/js/api.js b/data/web/js/api.js
index 2308a595..c4d0a37d 100644
--- a/data/web/js/api.js
+++ b/data/web/js/api.js
@@ -124,6 +124,9 @@ $(document).ready(function() {
     }
     if (typeof multi_data[id] == "undefined") return;
     api_items = multi_data[id];
+    for (var i in api_items) {
+      api_items[i] = decodeURIComponent(api_items[i]);
+    }
     // alert(JSON.stringify(api_attr));
     if (Object.keys(api_items).length !== 0) {
       if (is_active($(this))) { return false; }
@@ -251,6 +254,7 @@ $(document).ready(function() {
     $(document).on('show.bs.modal', '#ConfirmDeleteModal', function() {
       $("#ItemsToDelete").empty();
       for (var i in data_array) {
+        data_array[i] = decodeURIComponent(data_array[i]);
         $("#ItemsToDelete").append("<li>" + data_array[i] + "</li>");
       }
     })