]> BookStack Code Mirror - bookstack/commit
Hardened image file validation by removing custom validation
authorDan Brown <redacted>
Wed, 20 Mar 2019 23:59:55 +0000 (23:59 +0000)
committerDan Brown <redacted>
Wed, 20 Mar 2019 23:59:55 +0000 (23:59 +0000)
commit37b91b6b0ebd2dd77bb06daadcf062784d2a3ed2
tree19672a694bb6a79a6c617d4a1c93522e370a9290
parent00703fa817ebd444ec2cff8438f9c6f2397d4678
Hardened image file validation by removing custom validation

- Added test to check PHP files cannot be uploaded as an image.
app/Http/Controllers/ImageController.php
app/Providers/AppServiceProvider.php
resources/lang/en/validation.php
tests/Uploads/ImageTest.php
tests/Uploads/UsesImages.php
tests/test-data/bad.php [new file with mode: 0644]