Merge pull request #1329 from dpalou/MOBILE-2376
MOBILE-2376 ws: Treat PHP as an invalid extension
This commit is contained in:
		
						commit
						9b99633f7c
					
				| @ -372,7 +372,7 @@ export class CoreWSProvider { | ||||
|                     const ext = this.mimeUtils.getFileExtension(path); | ||||
| 
 | ||||
|                     // 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.
 | ||||
|                         promise = this.getRemoteFileMimeType(url).then((mime) => { | ||||
|                             if (mime) { | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user