Skip to content

Commit 97e57f9

Browse files
author
ionut.stan
committed
Bug fix
1 parent 80493fe commit 97e57f9

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "jsonrpc-bidirectional",
33
"description": "Bidirectional JSONRPC over web sockets or HTTP with extensive plugin support.",
4-
"version": "6.4.9",
4+
"version": "6.5.0",
55
"scripts": {
66
"build": "node build.js",
77
"test": "node --expose-gc --max-old-space-size=1024 tests/main.js",

src/Plugins/Server/URLPublic.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -551,9 +551,9 @@ class URLPublic extends JSONRPC.ServerPluginBase
551551
{
552552
assert(typeof strBase64 === "string", `Invalid parameter type for base64URLEscape. Expecting "string", but got "${typeof strBase64}".`);
553553
return strBase64
554-
.replace(/\++/g, "-")
555-
.replace(/\/+/g, "_")
556-
.replace(/\=+/g, "|")
554+
.replace(/\+/g, "-")
555+
.replace(/\//g, "!")
556+
.replace(/\=/g, "_")
557557
;
558558
}
559559

@@ -567,9 +567,9 @@ class URLPublic extends JSONRPC.ServerPluginBase
567567
{
568568
assert(typeof strBase64URLSafe === "string", `Invalid parameter type for base64URLEscape. Expecting "string", but got "${typeof strBase64URLSafe}".`);
569569
return strBase64URLSafe
570-
.replace(/\-+/g, "+")
571-
.replace(/_+/g, "/")
572-
.replace(/\|/g, "=")
570+
.replace(/\-/g, "+")
571+
.replace(/_/g, "=")
572+
.replace(/\!/g, "/")
573573
;
574574
}
575575

0 commit comments

Comments
 (0)