Permalink
Browse files

MDL-45332 repository_url: URL parameter is using PARAM_URL

  • Loading branch information...
1 parent 42367c0 commit 729783c4ba971413198f30784b48e3f2107a8da6 @FMCorz FMCorz committed with danpoltawski May 8, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 repository/url/lib.php
View
@@ -46,7 +46,7 @@ class repository_url extends repository {
public function __construct($repositoryid, $context = SYSCONTEXTID, $options = array()){
global $CFG;
parent::__construct($repositoryid, $context, $options);
- $this->file_url = optional_param('file', '', PARAM_RAW);
+ $this->file_url = optional_param('file', '', PARAM_URL);
}
public function check_login() {

0 comments on commit 729783c

Please sign in to comment.