Commit Graph

865 Commits

Author SHA1 Message Date
Ilia Rostovtsev
b337c192c8 Fix to_ip6address sub variables scope and missing ;
44b98ef4fc
2021-03-16 16:24:25 +03:00
Jamie Cameron
44b98ef4fc Add extra protection against internal perl error on IPv6 lookup 2021-03-15 23:54:10 -07:00
Jamie Cameron
f8ae8c81fb Attempt to fix 'attempt to copy freed scalar' error 2021-03-14 18:14:30 -07:00
Ilia Rostovtsev
4970243edf Add move_source_dest file API a4c78aecc7 (commitcomment-47871889) 2021-03-05 12:59:35 +03:00
Ilia Rostovtsev
2a57c182d8 Check if user prefs file exist 2021-02-28 03:05:13 +03:00
Ilia Rostovtsev
7022d214d2 Optimize subs
8b4bbec88b (commitcomment-47642572)
2021-02-28 03:01:10 +03:00
Ilia Rostovtsev
8b4bbec88b Fix to bypass 'noconfig' option for modules with prefs set to * 2021-02-26 15:41:28 +03:00
Ilia Rostovtsev
0945ebb1eb Revert "Use suggested $module_config_directory instead"
`$module_config_directory` is bo accessible when called from module config (using config.cgi file)

This reverts commit 444cbe5e83.
2021-02-23 13:02:48 +03:00
Ilia Rostovtsev
444cbe5e83 Use suggested $module_config_directory instead 2021-02-23 12:38:09 +03:00
Ilia Rostovtsev
c0dd20f26a Add ability to save module user prefs if allowed by module 2021-02-22 15:18:29 +03:00
Jamie Cameron
681b00790f Move up function for getting python path 2021-02-17 18:43:17 -08:00
Jamie Cameron
e2b6feee48 Always close timed-out connections when re-connecting 2021-02-06 12:55:24 -08:00
Jamie Cameron
1d782c5017 Make timeout configurable 2021-02-06 12:43:37 -08:00
Jamie Cameron
821e4d17a0 Always close the LDAP server connection, even if some operation failed 2021-01-31 11:06:27 -08:00
Jamie Cameron
0d17708cdd Better handle the case where no theme is in use 2021-01-25 20:24:55 -08:00
Ilia Rostovtsev
523668d9af Fix typo 2021-01-25 23:43:51 +03:00
Ilia Rostovtsev
37f1d75afd Add trim sub
23adcc8bc0 (r46315725)
2021-01-25 23:34:16 +03:00
Jamie Cameron
c0fcc04838 Merge branch 'master' of github.com:webmin/webmin 2021-01-24 13:28:25 -08:00
Jamie Cameron
6245010262 Prevent endlessly growing PATH https://github.com/virtualmin/virtualmin-gpl/issues/245 2021-01-24 13:28:02 -08:00
Ilia Rostovtsev
4fc2fc3f05 Add fail-proof on misconfiguration
4ef304662e
2021-01-24 17:48:29 +03:00
Jamie Cameron
4ef304662e Rely on theme passed from miniserv if available 2021-01-23 22:49:31 -08:00
Jamie Cameron
ea553ad6e6 Add config option to stop caching user DB connections 2021-01-22 20:11:26 -08:00
Jamie Cameron
8a6f778410 Check all IPv6 addresses, and also handle case where no HTTP reply is received 2021-01-20 21:30:28 -08:00
Jamie Cameron
04c74877c3 Try all IPs when opening a socket 2021-01-20 20:35:09 -08:00
Jamie Cameron
77ff74a717 Optionally resolve to multiple IPs 2021-01-20 20:16:19 -08:00
Ilia Rostovtsev
8f600c292e Add better styling for error messages in UI, and correspond with minserv
5a53f18b8c
2021-01-17 22:28:50 +03:00
Ilia Rostovtsev
297ed0dfa1 Improve error message formatting based on mode 2021-01-14 17:29:31 +03:00
Jamie Cameron
c580a31c9b Handle odd case where domain name is set to 'invalid' 2021-01-04 20:12:10 -08:00
Ilia Rostovtsev
539d72bd7b Add ability to preserve section comment as well 2020-12-28 16:38:22 +03:00
Ilia Rostovtsev
33145f2e64 Consider last block as well 2020-12-28 16:18:21 +03:00
Ilia Rostovtsev
fd4786202e Quotemeta strings 2020-12-27 21:14:37 +03:00
Ilia Rostovtsev
0f7ecb6f48 Fix comment 2020-12-27 15:17:49 +03:00
Ilia Rostovtsev
8d1976b63f Fix indent 2020-12-27 15:17:00 +03:00
Ilia Rostovtsev
a070bc0fa3 Use formal params
00e5b63873 (r45441291)
2020-12-27 15:14:44 +03:00
Ilia Rostovtsev
a2c6c3ba5e Fix indentation
00e5b63873 (r45441299)
2020-12-27 14:11:29 +03:00
Ilia Rostovtsev
00e5b63873 Add support for preserving new lines when writing file 2020-12-26 14:07:53 +03:00
Jamie Cameron
316318e2ba Remove redudant check 2020-12-21 12:41:01 -08:00
Jamie Cameron
ad5d1d4613 Improve error if module to require simply doesn't exist 2020-12-20 19:29:55 -08:00
Jamie Cameron
813e2e1d8b Progress URL might be from an untrustred source 2020-12-19 20:38:16 -08:00
Jamie Cameron
3c85fe0c7c Use absolute path to the su command, if we have it 2020-12-19 12:15:11 -08:00
Jamie Cameron
ba9334250e Add param to force a hostname 2020-12-18 15:21:34 -08:00
Jamie Cameron
47fcc8e18c Fix merge error 2020-12-18 15:07:36 -08:00
Jamie Cameron
ca5b154652 UI option to set a custom URL for use in emails 2020-12-18 15:04:25 -08:00
Ilia Rostovtsev
22c5c596ce Add complementary UI API for "read_file_contents_limit" sub 2020-12-18 16:50:24 +03:00
Ilia Rostovtsev
b3fe987e2b Add to return limit as well 2020-12-18 13:11:54 +03:00
Ilia Rostovtsev
eb186c2c85 Add new API sub to read large files partially 2020-12-18 00:13:31 +03:00
Ilia Rostovtsev
3a9146bad1 There could be more than one function in theme config functions 2020-12-14 22:19:11 +03:00
Ilia Rostovtsev
faec2a411b Revert "Add limit when reading file contents"
This reverts commit b594646679.
2020-12-14 01:36:46 +03:00
Ilia Rostovtsev
d0340e5fff Revert "Add ability to reverse read file contents"
This reverts commit dc62885a51.
2020-12-14 01:36:32 +03:00
Ilia Rostovtsev
dc62885a51 Add ability to reverse read file contents 2020-12-12 21:12:52 +03:00