Closed GoogleCodeExporter closed 8 years ago
I also added other documentation (for js) and it works fine
Original comment by kingo...@gmail.com
on 19 May 2008 at 12:17
I have found that function mime_content_type return 'text/plain' for
'/var/xinc/status/Telme/20080519/1211198400/documentation/PHPDoc
Documentation/index.html'. Please, use another way to found content-type of file
(magic, for example), or add *htm and *html in to exception, as it is done for
*tar.gz and *.css
Original comment by kingo...@gmail.com
on 19 May 2008 at 12:35
oleg@shoom-alpha:~$ sudo diff
/usr/share/php/Xinc/Plugin/Repos/Api/Format/File.php
/usr/share/php/Xinc/Plugin/Repos/Api/Format/File.php~new
69c69
< if (preg_match('/.*?.tar\.gz/', $fileName) ||
---
> if (preg_match('/.*?.tar\.gz$/', $fileName) ||
73c73
< } else if (preg_match('/.*?\.css/', $fileName)) {
---
> } else if (preg_match('/.*?\.css$/', $fileName)) {
74a75,76
> } else if (preg_match('/.*?\.htm(l)?$/', $fileName)) {
> return 'text/html';
Original comment by kingo...@gmail.com
on 19 May 2008 at 12:38
Issue 192 has been merged into this issue.
Original comment by opitz.al...@googlemail.com
on 30 Sep 2011 at 10:19
Original comment by opitz.al...@googlemail.com
on 30 Sep 2011 at 10:20
Changed in SVN
Original comment by opitz.al...@googlemail.com
on 6 Apr 2012 at 8:35
Original issue reported on code.google.com by
kingo...@gmail.com
on 19 May 2008 at 12:17