Skip to content

Use Prettier to format samples #1203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Use Prettier to format samples #1203

wants to merge 6 commits into from

Conversation

jhuleatt
Copy link
Collaborator

No description provided.

} else {
const split = line.replace('"', '\\"').split(': ');
const split = line.replace('"', '\\"').split(": ");

Check failure

Code scanning / CodeQL

Incomplete string escaping or encoding High

This replaces only the first occurrence of '"'.
var url = snapshot.metadata.downloadURLs[0];
console.log("File available at", url);
this.linkContainer.innerHTML =
'<a href="' + url + '">/' + filePath + "</a>";

Check warning

Code scanning / CodeQL

DOM text reinterpreted as HTML Medium

DOM text
is reinterpreted as HTML without escaping meta-characters.
DOM text
is reinterpreted as HTML without escaping meta-characters.
for (let i=0; i<tracers.length; i++) {
ray(Math.round(27/tracers[i]), 81, ctx, {x: 243, y: 0});
const ctx = canvas.getContext("2d");
for (let i = 0; i < tracers.length; i++) {

Check failure

Code scanning / CodeQL

Loop bound injection High

Iteration over a user-controlled object with a potentially unbounded .length property from a
user-provided value
.
functions.logger.error('Error minting token.', err);
res.status(500).send('Error minting token.');
}
app.get("/firebaseCustomToken", [cors, oktaAuth], async (req, res) => {

Check failure

Code scanning / CodeQL

Missing rate limiting High

This route handler performs
authorization
, but is not rate-limited.
}
// [START v1domainHttpsError]
// Only users of a specific domain can sign up.
if (!email.includes("acme.com")) {

Check failure

Code scanning / CodeQL

Incomplete URL substring sanitization High

'
acme.com
' can be anywhere in the URL, and arbitrary hosts may come before or after it.
projectId: 'my-project',
databaseURL: 'https://my-project.firebaseio.com'
projectId: "my-project",
databaseURL: "https://my-project.firebaseio.com",

Check failure

Code scanning / CodeQL

Incomplete regular expression for hostnames High test

This string, which is used as a regular expression
here
, has an unescaped '.' before 'firebaseio.com', so it might match more hosts than expected.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant