mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-14 06:11:35 +08:00
guide-ja/tutorial-* revised [ci skip] (#16213)
* guide-ja/tutorial-* revising WIP [ci skip] * guide-ja/tutorial-* revising WIP [ci skip] * guide-ja/tutorial-* revised [ci skip] * guide-ja/db-query-builder.md typo fixed [ci skip]
This commit is contained in:

committed by
Alexander Makarov

parent
2abe6ecf12
commit
221dc878f6
@ -237,7 +237,7 @@ $query->where(['id' => $userQuery]);
|
||||
```php
|
||||
// 脆弱なコード:
|
||||
$column = $request->get('column');
|
||||
$value = $request->get('value);
|
||||
$value = $request->get('value');
|
||||
$query->where([$column => $value]);
|
||||
// $value は安全です。しかし、$column の名前はエンコードされません。
|
||||
```
|
||||
|
Reference in New Issue
Block a user