Skip to content

Commit 589a1ae

Browse files
committed
userdata.php: fix typo that broke demo. (Found by Claude.)
1 parent f460d29 commit 589a1ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vuln_apps/src/userdata.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
$conn = new MongoClient('mongodb://127.0.0.1');
1212
$db = $conn->appUserData;
1313
$collection = $db->users;
14-
$search = $_GET['usersearch'];
14+
$usersearch = $_GET['usersearch'];
1515
$js = "function () { var query = '". $usersearch . "'; return this.username == query;}";
1616
print $js;
1717
print '<br/>';
@@ -45,4 +45,4 @@
4545
<?php echo $result; ?>
4646
</div>
4747
</body>
48-
</html>
48+
</html>

0 commit comments

Comments
 (0)