Commit 0fc6539843015b54b481dd3f388aa7b6479e829f
1 parent
331ec0a4
Exists in
master
and in
73 other branches
Fix detection of VOTable format
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
php/classes/FilesMgr.php
... | ... | @@ -751,7 +751,7 @@ class FilesMgr extends AmdaObjectMgr |
751 | 751 | if (strpos($this->fileName,"cef.gz") !== false) return "cef"; |
752 | 752 | } |
753 | 753 | |
754 | - if (strpos($file_info[0],"application/xml") !== false) | |
754 | + if ((strpos($file_info[0],"application/xml") !== false) || (strpos($file_info[0],"text/xml") !== false)) | |
755 | 755 | { |
756 | 756 | //if ($this->getVotFileMgr()->isValidSchema()) //BRE : No schema validation for the moment due to some trouble with Topcat (it can create not valid VOTable) |
757 | 757 | return "vot"; |
... | ... |