Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
"MDL-16650, fixed bug of returning raw urls"
  • Loading branch information
dongsheng committed Oct 23, 2008
1 parent 9d83329 commit 53c8ae5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion repository/ws.php
Expand Up @@ -156,7 +156,7 @@
$itemid = (int)substr(hexdec(uniqid()), 0, 9)+rand(1,100);
try {
if (preg_match('#(https?://([-\w\.]+)+(:\d+)?(/([\w/_\.]*(\?\S+)?)?)?)#', $path)) {
return array('url'=>$path);
echo json_encode(array('url'=>$path, 'id'=>$path, 'file'=>$path));
} else {
$info = repository_move_to_filepool($path, $title, $itemid);
if ($env == 'form'){
Expand Down

0 comments on commit 53c8ae5

Please sign in to comment.