Skip to content

Commit

Permalink
MDL-45332 repository_url: URL parameter is using PARAM_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic Massart authored and danpoltawski committed May 8, 2014
1 parent 317e98b commit c5e8a03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/url/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c5e8a03

Please sign in to comment.