@aws-sdk/cloudfront-signer 3.1069.0 → 3.1074.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +1 -1
- package/dist-es/sign.js +1 -1
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -105,7 +105,7 @@ function encodeUrlPath(url) {
|
|
|
105
105
|
let encodedQuery = "";
|
|
106
106
|
if (rawQuery) {
|
|
107
107
|
for (const [key, value] of new URLSearchParams(rawQuery.slice(1)).entries()) {
|
|
108
|
-
encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
108
|
+
encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key).replace(/'/g, "%27")}=${encodeURIComponent(value).replace(/'/g, "%27")}`;
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
return origin + encodedPath + encodedQuery;
|
package/dist-es/sign.js
CHANGED
|
@@ -104,7 +104,7 @@ function encodeUrlPath(url) {
|
|
|
104
104
|
let encodedQuery = "";
|
|
105
105
|
if (rawQuery) {
|
|
106
106
|
for (const [key, value] of new URLSearchParams(rawQuery.slice(1)).entries()) {
|
|
107
|
-
encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key)}=${encodeURIComponent(value)}`;
|
|
107
|
+
encodedQuery += `${encodedQuery ? "&" : "?"}${encodeURIComponent(key).replace(/'/g, "%27")}=${encodeURIComponent(value).replace(/'/g, "%27")}`;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
return origin + encodedPath + encodedQuery;
|
package/package.json
CHANGED