Skip to content

Commit b2448eb

Browse files
Issue 47044: Decode plus sign that may be a part of a folder path (#142)
1 parent 8a7bcaa commit b2448eb

File tree

5 files changed

+8
-3
lines changed

5 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 1.18.1 - 2023-01-09
2+
- [Issue 47044](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=47044): Decode the plus sign that may be part of a folder path
3+
14
## 1.18.0 - 2023-01-03
25
- [Issue 47010](https://www.labkey.org/home/Developer/issues/issues-details.view?issueId=47010): Add `includeViewDataUrl` and `includeTitle` parameters to `Query.getQueries()`. Setting these to `false` (along with existing parameter `includeColumns`) can improve performance of getQueries() calls.
36

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@labkey/api",
3-
"version": "1.18.0",
3+
"version": "1.18.1",
44
"description": "JavaScript client API for LabKey Server",
55
"scripts": {
66
"build": "npm run build:dist && npm run build:docs",

src/labkey/ActionURL.spec.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ describe('ActionURL', () => {
7575
validatePath('/home/project-begin.view', '', '/home', 'project', 'begin');
7676
validatePath('/home/with/folder/project-begin.view', '', '/home/with/folder', 'project', 'begin');
7777
validatePath('/%E2%98%83/%E2%9D%86/%E2%A8%8Drosty-%F0%9D%95%8Anow.view', '', '/☃/❆', '⨍rosty', '𝕊now');
78+
validatePath('/home%2C%2B%2B%3B%40%26%3D%24%23%2Cfolder/project-begin.view', '', '/home,++;@&=$#,folder', 'project', 'begin');
7879
validatePath(
7980
'/my%20folder/my%20path/pipeline-status-action.view?rowId=123',
8081
'',

src/labkey/ActionURL.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ function fullyDecodeURIPath(path: string): string
284284
{
285285
return decodeURI(path)
286286
.replace(/%2C/g, ",")
287+
.replace(/%2B/g, "+")
287288
.replace(/%3B/g, ";")
288289
.replace(/%40/g, "@")
289290
.replace(/%26/g, "&")

0 commit comments

Comments
 (0)