A free open source IT asset/license management system
Allow XML mimetypes
snipe7bf1664b8ff6
diff --git a/app/Http/Controllers/LicensesController.php b/app/Http/Controllers/LicensesController.phpindex 721846bc92..b3465328ae 100755--- a/app/Http/Controllers/LicensesController.php+++ b/app/Http/Controllers/LicensesController.php@@ -825,7 +825,7 @@ class LicensesController extends Controllerforeach (Input::file('licensefile') as $file) {$rules = array(- 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf,lic|max:2000'+ 'licensefile' => 'required|mimes:png,gif,jpg,jpeg,doc,docx,pdf,txt,zip,rar,rtf,xml,lic|max:2000');$validator = Validator::make(array('licensefile'=> $file), $rules);diff --git a/resources/lang/en/admin/licenses/message.php b/resources/lang/en/admin/licenses/message.phpindex 77c4041c29..d5dbfe77b9 100644--- a/resources/lang/en/admin/licenses/message.php+++ b/resources/lang/en/admin/licenses/message.php@@ -23,7 +23,7 @@ return array('error' => 'File(s) not uploaded. Please try again.','success' => 'File(s) successfully uploaded.','nofiles' => 'You did not select any files for upload, or the file you are trying to upload is too large',- 'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, rar, rtf, and lic.',+ 'invalidfiles' => 'One or more of your files is too large or is a filetype that is not allowed. Allowed filetypes are png, gif, jpg, jpeg, doc, docx, pdf, txt, zip, rar, rtf, xml, and lic.',),'update' => array(