business-decision/query-security-bundle
Composer 安装命令:
composer require business-decision/query-security-bundle
包简介
Symfony QuerySecurityBundle
关键字:
README 文档
README
WIP : Bundle
Instalation
Composer require
Configuration
File path : config/packages/query_security.yaml
parameters:
# All Fields protection
render_response_on_exception: true # render response instead of Exception (exception in kernel.request event are not catched)
html_escaped: true # all field are passed to strip_tags function
denied: ['<script>','javascript', 'http', '//'] # banned word in field value
escaped: ['redirect'] ## word removed from value
# per query parameters configuration
parameters:
fieldname:
denied: ['<script>','javascript', 'http', '//']
#Can be a static method or a function set in bootstrap.php
validator: ['callbackFunctionName']
#can access submit field if field is array
subfield:
html_escaped: false
## Todo
[ ] Better Configuration
统计信息
- 总下载量: 6.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-04-13