aboutsummaryrefslogtreecommitdiff
path: root/dpi/file.c
AgeCommit message (Collapse)Author
2024-04-26Recognize *.xhtml documents as HTML tooRodrigo Arias Mallo
The file plugin was not able to detect XHTML documents from files with the .xhtml extension if there are comments before the doctype line. Before falling back to reading the content, we directly specify the media type to HTML based on the extension alone. The basic content type detection algorithm is too simple and will continue to fail when comments are placed before the doctype line. Reported-by: Kevin Koster <dillo@ombertech.com> See: https://lists.mailman3.com/hyperkitty/list/dillo-dev@mailman3.com/message/HBKXGO7EGCHWOQ6BM55A4LZQKT437UID/
2024-03-24Use dStrconcat() to concatenate stringsRodrigo Arias Mallo
Reported-by: dogma
2024-03-24Use dGethomedir() to get the home directoryRodrigo Arias Mallo
Other platforms don't use $HOME. Reported-by: dogma
2024-03-23Free auxiliary string in File_normalize_path()Rodrigo Arias Mallo
Fixes: https://github.com/dillo-browser/dillo/issues/87 Reported-by: dogma
2024-02-18Expand tilde to home directory in local URLsRodrigo Arias Mallo
Allows paths like "file:~/" and "file:~/.dillo/dillorc" to be opened by Dillo by expanding the tilde character '~' to the value of the $HOME environment variable. Fixes: https://github.com/dillo-browser/dillo/issues/81
2016-07-12cppcheck: Fix syntax error for S_ISDIR.Jorge Arellano Cid
2014-07-30KBcorvid
2011-11-17never treat URI schemes case-sensitivelycorvid
2011-11-11locale-independent ASCII character case handlingcorvid
Basically, I and i are different letters in Turkic languages, and this causes problems for str(n)casecmp and toupper/tolower in these locales when dillo is dealing with ASCII.
2011-11-08image magic is case-sensitivecorvid
2010-08-22file dpi close pre tag for empty directory listingcorvid
2010-03-01free dpip_tagcorvid
2010-02-27trim some spacescorvid
2009-11-18Fixed bookmarks "cancel" link (Add/Mod URL, Add Sec). Also s/tmp_fd/sock_fd.Jorge Arellano Cid
2009-11-01file dpi: Used NONBLOCKING for accept() (to assert it never blocks)Jorge Arellano Cid
2009-11-01Introduced the a_Dpip_dsh_tryflush() callJorge Arellano Cid
This adds an internal buffer in the dsh data structure.
2009-11-01Removed the write/fwrite mix in dpip. Introduced a_Dpip_dsh_trywrite()Jorge Arellano Cid
Several cleanups and more error handling sprinkled all over too.
2009-11-01Implemented the file dpi based on select() (removed its pthreads dependency)Jorge Arellano Cid
It should be faster and use less resources.
2009-11-01Convert dpid, file dpi and cookies dpi to dsh APIJorge Arellano Cid
cookies: convert to dsh API (with auth) file dpi: convert to dsh API (with auth) dpid: convert to dsh API (with auth) handle EINTR in connect(), authenticated DpiBye cmd
2009-11-01Introduce basic shared-secret-based authenticationJorge Arellano Cid
2009-07-17Added a_Dpip_get_attr_l() to DPIP's APIJorge Arellano Cid
2009-07-12Handle signed chars. Aadded dIsspace() and dIsalnum() to dlibJorge Arellano Cid
2009-05-01Add ".txt" as plain/text file extension in the file dpicorvid
2009-04-30Switched a few remaining "unsigned int" to "uint_t"Jorge Arellano Cid
2009-02-09whitespace cleanup: 's/ +$//g'Jorge Arellano Cid
2009-01-02Ensure that the dlib dStr* functions are used everywhere.Jorge Arellano Cid
2008-12-21Switched file dpi error messages to HTML.corvid
2008-09-30- Removed the button sensitivity timeout.jcid
2008-09-30- s/todo:/TODO:/gjcid
2008-09-14- Made several cleanups according to compiler warnings with "-W -Wall".jcid
2008-09-01- Minor change in the file dpi.jcid
2008-06-18- Enabled the file dpi to look inside gzipped files.jcid
2007-11-17Added the "static" qualifier where missing.jcid
2007-11-05Updated copyright linesjcid
2007-10-07Initial revisionjcid