Skip to content

Commit

Permalink
EQ-1012 Fix wrongly encoded filename
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai committed Mar 18, 2014
1 parent 89a0964 commit 859b3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion equella_rest_api.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,7 @@ public static function contribute_file_with_shared_secret($filename, $fp, $param

private static function contribute_file($filename, $fp, $params = array(), $useoauth = false) {
global $CFG;
$endpoint = self::get_end_point() . 'api/item/quick/' . urlencode($filename);
$endpoint = self::get_end_point() . 'api/item/quick/' . rawurlencode($filename);
$quickcontributeurl = new moodle_url($endpoint, $params);

$curl = new equella_curl();
Expand Down

0 comments on commit 859b3fd

Please sign in to comment.