MOBILE-2376 ws: Treat PHP as an invalid extension

main
Dani Palou 2018-06-06 15:04:21 +02:00
parent 0ec3f9fcab
commit b2648612af
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ export class CoreWSProvider {
const ext = this.mimeUtils.getFileExtension(path); const ext = this.mimeUtils.getFileExtension(path);
// Google Drive extensions will be considered invalid since Moodle usually converts them. // Google Drive extensions will be considered invalid since Moodle usually converts them.
if (!ext || ext == 'gdoc' || ext == 'gsheet' || ext == 'gslides' || ext == 'gdraw') { if (!ext || ext == 'gdoc' || ext == 'gsheet' || ext == 'gslides' || ext == 'gdraw' || ext == 'php') {
// Not valid, get the file's mimetype. // Not valid, get the file's mimetype.
promise = this.getRemoteFileMimeType(url).then((mime) => { promise = this.getRemoteFileMimeType(url).then((mime) => {
if (mime) { if (mime) {