Commit Graph

19 Commits

Author SHA1 Message Date
ce765d28bb Add basic File Manager optimisations 2021-10-30 17:53:26 +03:00
13194bb563 Yet use old way of adding user-based conf options
(must be replaced with new user-based prefs and proper usage of config.info)
2021-02-22 20:19:00 +03:00
0d123fa590 Fix to prevent encoding detection if forbidden 2021-02-22 19:45:23 +03:00
d4e8a35a3e Fix binary detection 2020-12-20 19:29:11 +03:00
5f1e51c724 Rely on the server for binary file detection 2020-12-19 14:32:26 +03:00
22c5c596ce Add complementary UI API for "read_file_contents_limit" sub 2020-12-18 16:50:24 +03:00
a93bcb6d4c Remove redundant lib call 2020-12-18 11:35:18 +03:00
2e79e3dbe6 Fix regex to match only first 3 lines instance; vim support 2018-01-16 13:47:12 +03:00
6d6abb7347 Add support for forcing encoding using file comment '-*- coding: encoding -*-' 2018-01-15 12:49:14 +03:00
06752583db Add some missing escaping 2017-05-31 14:43:10 -07:00
817244241a Filename needs escaping 2017-05-16 23:11:36 -07:00
e787caf228 Fix path validation when saving files https://github.com/webmin/webmin/issues/548 2017-05-06 11:24:31 -07:00
59b59b2e43 Let non-unicode users read files in their charset correctly + check for valid encoding
In case a user still have old, non-UTF8 setup, they still need to see files in their encoding correctly, thus without converting output to utf-8. The way it is now, breaks things.

Also, there are cases when detected `$encoding_name` is not recognized by `decode()` subroutine.
2017-05-04 15:36:42 +03:00
77c84a7539 Handle case where encoding module is missing 2017-05-03 20:43:38 -07:00
8e44c145b9 Make editor respect file's initial encoding: Viewer
This patch will make sure that user, will be able to READ files with different encodings properly and also, will be able to SAVE them without changing the initial encoding.

This awesomeness requires dependencies. However, RHEL has it installed by default but not Debian. New Webmin release should make sure to require/pull dependent packages:

For RHEL: `perl-Encode-Detect`
For Debian: `libencode-detect-perl`

P.S. We should no let user to set non-UTF8 locale anymore. All languages should be displayed unambiguously, like Google does, (Русский, svenska, Deutsche, English (United States) .. ).
2017-05-02 13:23:34 +03:00
80ecd012cf Make perl path consistent with the repo 2016-02-28 10:57:24 -08:00
a59cd42151 Re-fork filemin from 1.783 release 2016-02-22 20:06:44 -08:00
9ed6338db6 Undo filemin fork 2016-02-22 20:05:11 -08:00
f98e8e3398 Bring filemin as of the last webmin release across to our own repo 2016-02-21 15:36:17 -08:00