Skip to content

Commit 6a458b1

Browse files
committed
Add only twoi issues
1 parent 82ae2aa commit 6a458b1

File tree

4 files changed

+17894
-0
lines changed

4 files changed

+17894
-0
lines changed

src/Problem1Class.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
4+
class Problem1Class
5+
{
6+
protected string $test;
7+
8+
public function test(): string
9+
{
10+
$functionsCookies = $_COOKIE;
11+
}
12+
}
13+

src/Problem2Class.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
4+
class Problem2Class
5+
{
6+
7+
public function test(): string
8+
{
9+
foreach ($_POST['menu-locations'] as $menu_id) {
10+
echo 'ADD warning severity 10 - non-sanitized input variable';
11+
}
12+
}
13+
}
14+

0 commit comments

Comments
 (0)