public inbox for [email protected]  
help / color / mirror / Atom feed
From: Khushboo Vashi <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server
Date: Mon, 21 Jan 2019 15:13:22 +0530
Message-ID: <CAFOhELeweYF7G4oERasj775_Y+gerP_gJ1hBZunxh+q3t2PjNA@mail.gmail.com> (raw)

Hi,

Please find the attached patch to fix the RM 3800 - User can not add
database with special characters under DB restriction for add server

Thanks,
Khushboo


Attachments:

  [application/octet-stream] RM_3800.patch (659B, 3-RM_3800.patch)
  download | inline diff:
diff --git a/web/pgadmin/static/js/backform.pgadmin.js b/web/pgadmin/static/js/backform.pgadmin.js
index 7da721a9..3bd5a95b 100644
--- a/web/pgadmin/static/js/backform.pgadmin.js
+++ b/web/pgadmin/static/js/backform.pgadmin.js
@@ -1849,7 +1849,8 @@ define([
     },
     toRaw: function(formattedData) {
       if (_.isArray(formattedData)) {
-        return _.map(formattedData, decodeURIComponent);
+        let tmpArr = _.map(formattedData, encodeURIComponent);
+        return _.map(tmpArr, decodeURIComponent);
       } else {
         if (!_.isNull(formattedData) && !_.isUndefined(formattedData)) {
           return decodeURIComponent(formattedData);


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server
  In-Reply-To: <CAFOhELeweYF7G4oERasj775_Y+gerP_gJ1hBZunxh+q3t2PjNA@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox