MDL-58823 repository: Fix redirections to external files
authorJuan Leyva <juanleyvadelgado@gmail.com>
Fri, 5 May 2017 08:04:51 +0000 (10:04 +0200)
committerJuan Leyva <juanleyvadelgado@gmail.com>
Fri, 5 May 2017 08:04:51 +0000 (10:04 +0200)
commitfcdd7730bd94b2d6febea23cf9016d554781687c
tree69a6cd32f27601832b6eecea379c8a6839c7a38c
parent932bc91cb4d3f8239a035a6bbed2f827815e0415
MDL-58823 repository: Fix redirections to external files

We cannot use redirect() because is not compatible with
webservice/pluginfile.php
This script is defined as an AJAX_SCRIPT so redirections are not
allowed by redirect() function.
repository/filesystem/lib.php
repository/googledocs/lib.php
repository/onedrive/lib.php