Skip to content

Commit

Permalink
fix(db): EncodeURI PR #437 by @vijaye-statsig
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel authored Sep 9, 2021
2 parents 97b05fc + 3ed4d14 commit bb9ea9b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [1.1.8](https://github.com/polonel/trudesk/compare/v1.1.7...v1.1.8) (2021-07-25)


### Bug Fixes

* **tickets:** creation has no response [#423](https://github.com/polonel/trudesk/issues/423) by alsemany ([dcfde5f](https://github.com/polonel/trudesk/commit/dcfde5f))

## [1.1.7](https://github.com/polonel/trudesk/compare/v1.1.6...v1.1.7) (2021-07-15)


Expand Down
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2014-2019 Trudesk, Inc.
Copyright 2014-2021 Trudesk, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "trudesk",
"version": "1.1.7",
"version": "1.1.8",
"private": true,
"engines": {
"node": ">=9.10.0"
Expand Down
4 changes: 2 additions & 2 deletions src/controllers/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ installController.elastictest = function (req, res) {

installController.mongotest = function (req, res) {
var data = req.body
var dbPassword = encodeURIComponent(data.password)
var dbPassword = encodeURI(data.password)
var CONNECTION_URI =
'mongodb://' + data.username + ':' + dbPassword + '@' + data.host + ':' + data.port + '/' + data.database

Expand Down Expand Up @@ -150,7 +150,7 @@ installController.install = function (req, res) {
fullname: data['account[fullname]']
}

var dbPassword = encodeURIComponent(password)
var dbPassword = encodeURI(password)
var conuri = 'mongodb://' + username + ':' + dbPassword + '@' + host + ':' + port + '/' + database
if (port === '---') conuri = 'mongodb+srv://' + username + ':' + dbPassword + '@' + host + '/' + database

Expand Down

0 comments on commit bb9ea9b

Please sign in to comment.