public inbox for [email protected]  
help / color / mirror / Atom feed
[pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server
2+ messages / 2 participants
[nested] [flat]

* [pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server
@ 2019-01-21 09:43  Khushboo Vashi <[email protected]>
  0 siblings, 1 reply; 2+ messages in thread

From: Khushboo Vashi @ 2019-01-21 09:43 UTC (permalink / raw)
  To: pgadmin-hackers

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);


^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server
@ 2019-01-21 11:55  Akshay Joshi <[email protected]>
  parent: Khushboo Vashi <[email protected]>
  0 siblings, 0 replies; 2+ messages in thread

From: Akshay Joshi @ 2019-01-21 11:55 UTC (permalink / raw)
  To: Khushboo Vashi <[email protected]>; +Cc: pgadmin-hackers

Thanks patch applied.

On Mon, Jan 21, 2019 at 3:13 PM Khushboo Vashi <
[email protected]> wrote:

> 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
>


-- 
*Akshay Joshi*

*Sr. Software Architect *



*Phone: +91 20-3058-9517Mobile: +91 976-788-8246*


^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2019-01-21 11:55 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-21 09:43 [pgAdmin4][Patch] - RM 3800 - User can not add database with special characters under DB restriction for add server Khushboo Vashi <[email protected]>
2019-01-21 11:55 ` Akshay Joshi <[email protected]>

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