Skip to content
This repository was archived by the owner on Sep 30, 2022. It is now read-only.

Commit fedbf4a

Browse files
author
Cole J Calamos
committed
Removed possible XSS
1 parent 40ae476 commit fedbf4a

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-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": "@ccalamos/gatsby-source-googlemaps-static",
33
"description": "Gatsby source plugin for Google Maps Static API",
4-
"version": "2.0.10",
4+
"version": "2.0.11",
55
"author": "Cole Calamos <cole@colejcalamos.com>",
66
"bugs": {
77
"url": "https://github.com/ccalamos/gatsby-source-googlemaps-static/issues"

src/image-file.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,16 @@ class ImageFile extends CacheFile {
2222
this.useSignature = options.hasSecret;
2323
delete options["baseUrl"];
2424

25-
let appendStr = "";
26-
27-
appendStr += this.parseArrayParams("markers", options.markers);
28-
appendStr += this.parseArrayParams("visible", options.visible);
29-
appendStr += this.parseArrayParams("style", options.styles);
30-
appendStr += this.parseArrayParams("path", options.paths);
25+
const appendStr = `${this.parseArrayParams(
26+
"markers",
27+
options.markers,
28+
)}${this.parseArrayParams(
29+
"visible",
30+
options.visible,
31+
)}${this.parseArrayParams("style", options.styles)}${this.parseArrayParams(
32+
"path",
33+
options.paths,
34+
)}`;
3135

3236
this.options = this.generateParams(options, "", appendStr);
3337
this.extension = `.${options.format}`;

0 commit comments

Comments
 (0)