first commit
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
Some checks failed
Vulhub Format Check and Lint / format-check (push) Has been cancelled
Vulhub Format Check and Lint / markdown-check (push) Has been cancelled
Vulhub Docker Image CI / longtime-images-test (push) Has been cancelled
Vulhub Docker Image CI / images-test (push) Has been cancelled
This commit is contained in:
17
thinkphp/in-sqlinjection/www/controller/Index.php
Normal file
17
thinkphp/in-sqlinjection/www/controller/Index.php
Normal file
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
namespace app\index\controller;
|
||||
|
||||
use app\index\model\User;
|
||||
|
||||
class Index
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$ids = input('ids/a');
|
||||
$t = new User();
|
||||
$result = $t->where('id', 'in', $ids)->select();
|
||||
foreach($result as $row) {
|
||||
echo "<p>Hello, {$row['username']}</p>";
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user