stable
Clone or download
Read-only
request #12970: XML file is incorrectly recognized as a binary file in the blob web UI view
The way to detect if some content is binary content or not has been uniformized between the Git and PullRequest plugin. Change-Id: Id92a446eb72a4292b4feb94db934694bfc221831
Modified Files
Name | ||||
---|---|---|---|---|
A | plugins/git/include/Git/BinaryDetector.php | +38 | −0 | Go to diff View file |
M | plugins/git/include/GitPHP/controller/Controller_Blob.php | +6 | −3 | Go to diff View file |
M | plugins/git/include/GitPHP/git/Blob.php | +0 | −22 | Go to diff View file |
M | plugins/git/include/GitPHP/git/FileDiff.php | +5 | −3 | Go to diff View file |
A | plugins/git/phpunit/Git/BinaryDetectorTest.php | +48 | −0 | Go to diff View file |
A | plugins/git/phpunit/Git/fixtures/jpeg | Binary file | Go to diff View file | |
A | plugins/git/phpunit/Git/fixtures/png | Binary file | Go to diff View file | |
A | plugins/git/phpunit/Git/fixtures/tar | Binary file | Go to diff View file | |
A | plugins/git/phpunit/Git/fixtures/zip | Binary file | Go to diff View file | |
M | plugins/pullrequest/include/PullRequest/REST/v1/MimeDetector.php | +8 | −1 | Go to diff View file |