Skip to content

Commit 775cc56

Browse files
authored
Merge pull request #12 from secure-web-apps/feature/fix-sonarqube-cloud-issue
Fix SonarQube Cloud findings
2 parents 2992309 + 9c4ee60 commit 775cc56

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

server/Pages/Error.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<head>
88
<meta charset="utf-8" />
9-
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
9+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=2.0" />
1010
<title>Error</title>
1111
</head>
1212

ui/src/app/getCookie.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ export const getCookie = (cookieName: string) => {
22
const name = `${cookieName}=`;
33
const decodedCookie = decodeURIComponent(document.cookie);
44
const ca = decodedCookie.split(";");
5-
for (let c of ca) {
5+
for (let i of ca) {
6+
let c = i;
67
while (c.startsWith(" ")) {
78
c = c.substring(1);
89
}

0 commit comments

Comments
 (0)