Skip to content

Commit

Permalink
过滤XSS
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 3, 2017
1 parent 85ccf33 commit b47661b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/frontend/controllers/ArticleController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ protected function set_top_articles(){
*/
protected function set_articles_list(){
$page = intval($this -> request -> get('page', 'trim'));
$keyword = $this -> request -> get('keyword', 'trim');
$keyword = $this -> request -> get('keyword', 'remove_xss');
$ext['keyword'] = $keyword;
if($this -> dispatcher -> hasParam('category')){
$category = $this -> dispatcher -> getParam('category', 'trim');
Expand Down

0 comments on commit b47661b

Please sign in to comment.