Skip to content

Commit

Permalink
Fixed issue #13560: Stored XSS in Boxes
Browse files Browse the repository at this point in the history
  • Loading branch information
lacrioque committed Apr 9, 2018
1 parent 48e588e commit 86a0275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/models/Boxes.php
Expand Up @@ -27,6 +27,7 @@ public function rules()
// will receive user inputs.
return array(
array('url, title, ico, desc, page', 'required'),
array('url', 'match', 'pattern'=>'/(http:\/\/)?[a-zA-Z]([a-zA-Z0-9-_?&"\'=]\/?)*/'),
array('position', 'numerical', 'integerOnly'=>true),
array('usergroup', 'numerical', 'integerOnly'=>true, 'min'=>-3),
// The following rule is used by search().
Expand Down

0 comments on commit 86a0275

Please sign in to comment.