Commit Graph

289 Commits

Author SHA1 Message Date
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
5a53f18b8c Add better error messages and abstrac formatting 2021-01-17 20:09:08 +03:00
Ilia Rostovtsev
ce156cc4dc Add better error description for the cookies error
https://sourceforge.net/p/webadmin/discussion/600155/thread/0b15f9c4/?limit=25#d12b
2021-01-17 16:09:14 +03:00
Jamie Cameron
c6493ed65f THEME_ROOT can just be set to the global theme directory, since there are no users when running background commands 2021-01-09 12:01:47 -08:00
Jamie Cameron
2e4bc732bf The preroots variable already contains all theme roots, so just use it instead of attempting to re-construct from the current user 2021-01-09 12:00:23 -08:00
Ilia Rostovtsev
4fef82323e Fix detection of theme root for sudo capable users
https://forum.virtualmin.com/t/error-perl-execution-failed-undefined-subroutine-main-authentic-called-at-usr-share-webmin-authentic-theme-index-cgi-line-12/108864
https://sourceforge.net/p/webadmin/bugs/5442
2021-01-09 21:02:24 +03:00
Jamie Cameron
f881943377 Add option for max connections per class-C network 2020-12-29 15:59:43 -08:00
Jamie Cameron
026c8cbf7d Add support for limiting number of connections from the same IP address http://www.virtualmin.com/node/70253 2020-12-29 14:24:16 -08:00
Jamie Cameron
1163f3a7f4 Always use IPv6 if a v6 address was given https://github.com/webmin/webmin/issues/1420 2020-12-28 14:03:41 -08:00
Jamie Cameron
f7b9fb13cd Add a timeout for long post requests 2020-12-27 19:38:18 -08:00
Jamie Cameron
628f57e232 Make error message more useful 2020-12-19 16:50:32 -08:00
Ilia Rostovtsev
86ad678509 Add last new line 2020-12-09 15:18:19 +03:00
Ilia Rostovtsev
d44a65411e Add getenv sub 2020-12-09 15:17:20 +03:00
Ilia Rostovtsev
3f11cd926b Add theme root when executing Webmin command
35b4e4716f (commitcomment-44938628)
2020-12-09 13:37:03 +03:00
Jamie Cameron
5e4b529cb2 Do fail hard if the default SSL cert can't be loaded 2020-12-06 21:35:28 -08:00
Jamie Cameron
8a34f7b6a7 Fail more gracefully if SSL cert cannot be loaded 2020-12-06 21:31:27 -08:00
Ilia Rostovtsev
35b4e4716f Include theme root to env
https://sourceforge.net/p/webadmin/bugs/5430/
2020-12-06 13:46:13 +03:00
Ilia Rostovtsev
2c0ac4fa56 Fix color for errors 2020-11-09 14:50:51 +03:00
Ilia Rostovtsev
b02acf87e5 Fix to escape other params 2020-10-30 19:40:49 +03:00
Ilia Rostovtsev
ec6e681818 Fix to urlize password for 2FA https://github.com/webmin/webmin/issues/1317#issuecomment-718707491
https://www.virtualmin.com/node/70081
https://sourceforge.net/p/webadmin/bugs/5418
2020-10-29 16:10:38 +03:00
Ilia Rostovtsev
cf6eeadaa3 Fix to stop false positive syslogging on page reload 2020-10-16 19:59:53 +03:00
Ilia Rostovtsev
523bdc0066 Cosmetic changes to previous commit 26008394a9 2020-10-16 19:27:14 +03:00
Ilia Rostovtsev
26008394a9 Fix to prevent count failed when empty 2FA token is sent
b68a47fa0d
511e70aa97
2020-10-16 17:48:16 +03:00
Ilia Rostovtsev
0ac26ba423 Fix comment typo 2020-10-16 15:45:31 +03:00
Jamie Cameron
f876411cdc Merge branch 'master' of github.com:webmin/webmin 2020-10-15 20:23:39 -07:00
Jamie Cameron
140c41e48a Remove debug messages 2020-10-15 20:20:26 -07:00
Ilia Rostovtsev
b68a47fa0d Fix to prevent logging when empty 2FA token is sent 511e70aa97 2020-10-15 13:19:07 +03:00
Ilia Rostovtsev
511e70aa97 Add to support to display two factor authentication field selectively
https://virtualmin.com/node/70011
2020-10-14 19:02:37 +03:00
Ilia Rostovtsev
7b8dfb7f7b Beautify miniserv error output 2020-09-14 14:57:39 +03:00
Jamie Cameron
e86dd731fb Redirect to port 443 if port 80 was hit in SSL mode 2020-09-13 15:45:03 -07:00
Jamie Cameron
048ae20b37 Drop 443 from port if not needed 2020-09-10 12:27:39 -07:00
Jamie Cameron
7348723545 Just log a warning if a per-IP cert doesn't exist, instead of crashing out https://www.virtualmin.com/node/69691 2020-08-14 17:01:13 -07:00
Ilia Rostovtsev
49353baa58 If the redirect_prefix exists change redirect base to include the prefix #1271 2020-07-24 18:02:52 +03:00
Jamie Cameron
e18884150b Remove message about PAM perl module not being loaded 2020-07-18 10:52:50 -07:00
Jamie Cameron
11a8bd2e55 Fix inverted cleanup of child PIDs 2020-07-10 17:35:46 -07:00
Jamie Cameron
d9093ebefc Simplify an obsolete error message 2020-07-05 14:41:59 -07:00
Jamie Cameron
1ccc4e4cef Don't log to stderr if an unparsable message comes in SSL mode 2020-07-05 14:39:18 -07:00
Jamie Cameron
8f61b43253 Check flag files more often 2020-07-05 11:00:13 -07:00
Jamie Cameron
07f2c8683a Always enable stop-flag feature 2020-07-04 20:54:45 -07:00
Jamie Cameron
645daaf0cd Needed to show error messages properly in non-SSL mode 2020-06-30 15:02:29 -07:00
Jamie Cameron
f35a49bac8 Hack to handle the case where unicode characters slip through and need to be converted to multi-bytes before printing 2020-06-28 16:54:49 -07:00
Jamie Cameron
ca95ef28ef Remove useless delay to support IE6 2020-06-28 13:10:15 -07:00
Jamie Cameron
bd398649bf Undo recent encoding fixes, add stack trace on failed syswrite 2020-06-27 11:11:01 -07:00
Ilia Rostovtsev
65c2a0f0fb Revert "Decode string in :utf8 binmode, to avoid output desruption"
This reverts commit e712efb31f.
2020-06-27 21:07:59 +03:00
Ilia Rostovtsev
e712efb31f Decode string in :utf8 binmode, to avoid output desruption (double-encoding) https://github.com/webmin/webmin/issues/1252 2020-06-27 20:55:21 +03:00
Jamie Cameron
c783eca0a2 UTF-8 mode needs to be enabled, but only when not using SSL 2020-06-27 10:11:08 -07:00
Jamie Cameron
34e63a029f ALways load the ipv6 module https://sourceforge.net/p/webadmin/bugs/5379/ 2020-06-10 20:13:18 -07:00
Jamie Cameron
2807def400 SID is always 32 bytes long 2020-05-25 14:46:10 -07:00
Jamie Cameron
9d7d13b4d9 Drop noisy preload messages 2020-05-22 19:03:39 -07:00
Ilia Rostovtsev
b28a26f1b6 Trim username to remove leading and trailing spaces
It may be annoying to see this error message if username copy/paste from somewhere and contains unexpected spaces
2020-05-03 14:02:17 +03:00