Compare commits

..

232 Commits

Author SHA1 Message Date
iliajie
486b323990 Add ability to control Server: response header #1945
This change:

  1. Adds ability for an admin to set custom response header for `Server:`
  2. Fixes displaying of running Webmin version for unauthenticated user
2023-07-11 15:05:04 +03:00
iliajie
4b89587726 Merge branch 'master' of github.com:webmin/webmin 2023-07-11 13:59:10 +03:00
iliajie
f24fa4af6a Fix to always show PHP default radio 2023-07-11 13:58:43 +03:00
Jamie Cameron
dda33af768 Allow selection of default mode always https://github.com/virtualmin/virtualmin-gpl/issues/555 2023-07-10 16:35:52 -07:00
iliajie
cc05c62609 Fix sub name and add missing class name 2023-07-10 05:48:24 +03:00
iliajie
3c113c9278 Fix not to print section when there are none 2023-07-10 01:30:07 +03:00
iliajie
8b09edc5d3 Fix schedule table be tagged 2023-07-10 01:29:42 +03:00
iliajie
643ace4777 Add new API: ui_space, ui_newline, ui_text
Nothing can be thrown to the browser without being used with UI lib!
2023-07-09 23:07:59 +03:00
Jamie Cameron
097e24a7b1 Allow extra logs to end with a | indicating they are actually commands https://github.com/webmin/webmin/issues/1946 2023-07-09 10:55:48 -07:00
Jamie Cameron
f797d29b81 Fix format of disk usage table: 2023-07-08 17:18:28 -07:00
Jamie Cameron
aca381b118 Inputs can't be outside the table tags 2023-07-07 15:54:30 -07:00
iliajie
195ea913df Fix logic to check if /dev/urandom is allowed 1bc262481d (commitcomment-120432005) 2023-07-05 12:06:47 +03:00
Ilia
7232db4b57 Merge pull request #1940 from swelljoe/redhat-dir-is-deprecated
Prefer rpmbuild dir, even when building as root
2023-07-03 12:18:53 +03:00
Jamie Cameron
f688f29029 Allow editing of bridge STP field 2023-07-02 22:30:51 -07:00
Jamie Cameron
057f10d868 Fix saving of bridge interface 2023-07-02 20:38:02 -07:00
Jamie Cameron
086ebe845a Fix editing of bridge connections to interfaces 2023-07-02 18:48:35 -07:00
Joe Cooper
3e47779858 Prefer rpmbuild dir, even when building as root 2023-07-02 20:30:34 -05:00
Jamie Cameron
39132506e8 Implement creation of bridge interfaces 2023-07-02 17:25:23 -07:00
Jamie Cameron
71dc51523a Merge branch 'master' of github.com:webmin/webmin 2023-07-02 10:50:59 -07:00
Jamie Cameron
93a853f95f Work on bridge support 2023-07-01 23:16:58 -07:00
Jamie Cameron
c0edba233a Merge pull request #1939 from webmin/dev/collation-downgrade
Add ability to downgrade database collation
2023-07-01 19:11:38 -07:00
iliajie
368dacd028 Fix to simplify the code 2023-07-02 03:20:03 +03:00
iliajie
b49d4f8147 Fix to copy file permissions too 2023-07-01 22:19:30 +03:00
iliajie
8f3fb71b68 Fix label be no redundant 2023-06-30 23:30:48 +03:00
iliajie
01e4a5145d Fix label be no redundant 2023-06-30 23:02:51 +03:00
iliajie
f3bc8c9061 Fix to tighten regex match 2023-06-30 14:21:41 +03:00
iliajie
9e58110854 Fix indent 2023-06-30 13:44:47 +03:00
iliajie
2b2ead4d7d Add ability to downgrade database collation 2023-06-30 13:42:31 +03:00
iliajie
827c77c960 Add support for render addons #1656 2023-06-29 16:35:01 +03:00
iliajie
9db9582f4a Fix not to leak variable to global scope 2023-06-29 14:31:06 +03:00
iliajie
20f0538c64 Update xterm.js 2023-06-29 13:57:04 +03:00
iliajie
a026b69736 Add Terminal to be used with safe Webmin user 2023-06-29 13:07:45 +03:00
Jamie Cameron
5b760082d9 Merge branch 'master' of github.com:webmin/webmin 2023-06-28 16:19:34 -07:00
Jamie Cameron
487b11e9be Clean up code showing local disk space https://github.com/webmin/webmin/issues/1936 2023-06-28 16:19:17 -07:00
iliajie
8c236004c9 Fix last row element 2023-06-29 00:05:45 +03:00
Jamie Cameron
1025f8c657 Fix setting of virtual IPs 2023-06-28 07:39:46 -07:00
Jamie Cameron
14ad4cbf85 More work on network manager 2023-06-27 23:27:19 -07:00
Jamie Cameron
0a1f12c22b Use CLI instead of directly updating config files 2023-06-27 15:59:29 -07:00
Jamie Cameron
a9070e4bc3 Improve creation of default interface 2023-06-26 08:01:18 -07:00
Jamie Cameron
679a590b0c Merge pull request #1935 from webmin/dev/images-in-replies
Fix to integrate existing Usermin code to display inline images in replies correctly
2023-06-25 09:53:16 -07:00
iliajie
797dd6a59c Fix to correctly set existing styling for tags found in document
i.e. this will preserve existing styling if any!
2023-06-25 17:43:04 +03:00
iliajie
0b72f7f895 Fix indent 2023-06-25 16:54:25 +03:00
iliajie
6472213dcc Fix not to drop attachments 2023-06-25 16:52:10 +03:00
iliajie
80df962012 Fix to integrate existing Usermin code to display inline imgs in replies 2023-06-25 16:51:45 +03:00
iliajie
944236d454 Fix textarea to be vertically resized only and be in sync with HTML size 2023-06-25 16:09:49 +03:00
iliajie
43dc4a479e Fix not to touch image reference
https://github.com/webmin/webmin/pull/1926#issuecomment-1605882853
2023-06-25 12:38:47 +03:00
iliajie
9355b4969d Fix default HTML editor height 2023-06-24 23:28:55 +03:00
Jamie Cameron
0cd1d43fef Merge branch 'master' of github.com:webmin/webmin 2023-06-23 23:24:14 -07:00
Jamie Cameron
44b06c8908 More work on editing network manager config 2023-06-23 23:19:36 -07:00
iliajie
d78b8e0e1d Fix to embed theme styles when viewing an email too 2023-06-24 01:23:09 +03:00
iliajie
312f55fe11 Fix to update command used in man 2023-06-23 13:50:01 +03:00
Jamie Cameron
87b54273ff Merge pull request #1934 from devadattas/patch-1
Resolves Support issue for MariaDB 11 (https://github.com/webmin/webmin/issues/1933)
2023-06-22 22:07:28 -07:00
Devadatta Sahoo
dedfaa49ae Resolves https://github.com/webmin/webmin/issues/1933
Resolves https://github.com/webmin/webmin/issues/1933
2023-06-23 06:28:40 +05:30
Jamie Cameron
944400a136 Merge pull request #1931 from webmin/dev/fix-temp-dir-creation
Fix to consider temp directory may exists with incorrect permissions
2023-06-22 15:48:37 -07:00
iliajie
d3cdbbcc4b Fix to call only in HTML mode 2023-06-23 01:08:47 +03:00
iliajie
ef9e525bd6 Fix a bug loading theme iframe quote style file 2023-06-22 13:34:21 +03:00
iliajie
0754367f48 Fix to consider temp directory may exists with incorrect permissions 2023-06-22 12:32:35 +03:00
iliajie
3a7145b2e3 Fix language strings as 'warning' and 'danger' already part of UI alert 2023-06-22 11:46:38 +03:00
Jamie Cameron
8dd96e2aca Merge branch 'master' of github.com:webmin/webmin 2023-06-21 16:51:47 -07:00
Jamie Cameron
f49539ad96 Add a warning about editing Virtualmin-controlled domains 2023-06-21 16:48:51 -07:00
iliajie
739411a07e Fix navigation type detection bug 2023-06-21 18:21:42 +03:00
iliajie
ea8c76b5b8 Fix to consider framed theme to load iframe inner styles too 2023-06-21 17:53:11 +03:00
iliajie
d191f1ba92 Add to consider different navigation types 2023-06-21 16:07:42 +03:00
iliajie
444c101d19 Fix to remove outline for inner contenteditable 2023-06-21 15:40:13 +03:00
iliajie
9017d290bc Merge remote-tracking branch 'origin/master' 2023-06-21 12:42:21 +03:00
iliajie
2733f945c5 Add ability for themes to embed styles into quote iframe 2023-06-21 12:42:08 +03:00
Jamie Cameron
231df9c37f UI to edit network manager routes 2023-06-20 23:07:56 -07:00
Jamie Cameron
dbde3d370b Merge branch 'master' of github.com:webmin/webmin 2023-06-20 23:02:55 -07:00
Jamie Cameron
1e07f0c93a Add MTU support 2023-06-20 23:00:11 -07:00
iliajie
9ed3fd2237 Fix to disable ispell 2023-06-20 23:37:36 +03:00
iliajie
629ca21a3a Fix to correctly test for dark palette 2023-06-20 23:33:27 +03:00
Jamie Cameron
0f898b161b Update nameservers in netplan config 2023-06-19 20:21:39 -07:00
Jamie Cameron
de53c330d6 Support for getting and setting default gateway 2023-06-19 20:19:28 -07:00
Jamie Cameron
d9401ff1b7 Merge branch 'master' of github.com:webmin/webmin 2023-06-19 20:10:28 -07:00
Jamie Cameron
e33c5aa630 More work on network manager support: 2023-06-19 20:10:17 -07:00
Jamie Cameron
8ac62d43bd Merge pull request #1926 from webmin/dev/mail-awesome-replies
Add support for better HTML handling in email replies
2023-06-19 11:24:48 -07:00
iliajie
c2c3533e4e Fix HTML editor adding extra new line on page reload 2023-06-19 20:19:15 +03:00
iliajie
bfe966f6cf Add email styling support for Google Mail 2023-06-19 02:59:04 +03:00
iliajie
75b1401e62 Add simple algorithm to convert classes to inline styles
Tags CSS styling to inline styles is on the next and the final commit!
2023-06-19 01:10:29 +03:00
iliajie
f1159015ed Fix to perfect inner styling 2023-06-18 17:18:33 +03:00
iliajie
9c348f7909 Fix to drop pretty redundant Expert mode to: Basic, Simple, Advanced 2023-06-18 16:14:41 +03:00
iliajie
c80d854054 Drop Katex support as we cannot reliably use it in emails 2023-06-18 15:47:02 +03:00
iliajie
f6299b4e29 Add embedment of styling in our email (works everywhere but GMail) 1/2
Gmail fix is coming
2023-06-18 15:42:23 +03:00
Jamie Cameron
b91e25aa6f Clear cached postfix version on webmin upgrade 2023-06-17 22:49:05 -07:00
iliajie
a268373550 Add local editor classes and styles to inline styling in resulting HTML
1/2 - needs more improvements and optimizations - although it works already
2023-06-18 03:23:02 +03:00
iliajie
8d595a7ac5 Fix to remove empty line 2023-06-18 01:29:42 +03:00
iliajie
2065602494 Fix HTML editor tooltip z-index 2023-06-18 01:29:28 +03:00
iliajie
d27e37efbf Fix not to whitelist any attributes 2023-06-18 01:28:46 +03:00
iliajie
85f9402bfe Fix to rename theme iframe CSS file 2023-06-18 00:26:28 +03:00
iliajie
6bb6a0de01 Fix to load iframe CSS from a theme based file 2023-06-18 00:25:43 +03:00
iliajie
081dfbe373 Fix to update last message on the initial load 2023-06-17 23:37:43 +03:00
iliajie
8d330a95de Add ability to load images in quote replies 2023-06-17 22:56:25 +03:00
iliajie
ac5f974d5c Fix to allow inline images 2023-06-17 20:57:17 +03:00
iliajie
3f1306e9cf Fix iframe styling to be theme dependent 2023-06-17 19:23:39 +03:00
iliajie
8bd7c32c10 Fix to keep font size and color in sync for viewer and editor 2023-06-17 19:21:57 +03:00
iliajie
cf7165ffaa Fix heading paddings consistency 2023-06-17 18:40:56 +03:00
iliajie
dd4c7e6fe1 Fix to view email area no padding (let HTML email do the job) 2023-06-17 18:37:20 +03:00
iliajie
5aa1986a30 Fix email styling when viewing 2023-06-17 18:34:06 +03:00
iliajie
ff09a096cb Fix to revert the last commit as we don't need to store replies 2023-06-17 11:54:06 +03:00
iliajie
ca74a730ee Fix to store full message content, including possible replies 2023-06-17 03:06:51 +03:00
iliajie
e208907db1 Fix to pass config option 2023-06-17 02:55:54 +03:00
iliajie
83c0cb66e5 Fix to have only one new line to preserve integrity on restore 2023-06-17 02:34:45 +03:00
iliajie
675dd4d269 Fix to use function declaration instead ; prefix function name 2023-06-17 01:42:53 +03:00
iliajie
f49f068cdc Fix caller function name module dependent, and allow being overridden 2023-06-17 01:21:19 +03:00
iliajie
f39282e0d0 Fix to drop test for modern themes, as it simply works flawlessly 2023-06-17 01:10:50 +03:00
iliajie
b66a2ac0c2 Add ability not to loose message content on page reload or going back 2023-06-17 00:59:29 +03:00
iliajie
2bc982127d Add support for dark mode in code highlights 2023-06-17 00:00:20 +03:00
iliajie
21e76d19bf Fix to drop obsolete option 2023-06-16 23:39:47 +03:00
iliajie
5ec3664397 Fix to correct modules load missing timestamp and webprefix 2023-06-16 23:36:55 +03:00
Jamie Cameron
be449d6fe2 More work on editing network manager configs 2023-06-16 13:14:10 -07:00
iliajie
1248c603e6 Fix to fully abstract selectors and possible elements to sync from 2023-06-16 23:10:40 +03:00
iliajie
1ba3cdcbc9 Fix to remove incorrect HTML escape 2023-06-16 21:38:25 +03:00
iliajie
3e5b68507e Fix not to add any quote if a new message 2023-06-16 20:57:23 +03:00
iliajie
d11257cf84 Fix fills for HTML editor toolbar dropdowns 2023-06-16 19:33:24 +03:00
iliajie
a2204e46e0 Add support for choosing HTML editor mode in module config 2023-06-16 19:22:24 +03:00
iliajie
61197c485f Fix to improve modes names 2023-06-16 19:16:34 +03:00
iliajie
3f39df4203 Fix to automate modules load based on editors mode 2023-06-16 19:11:52 +03:00
iliajie
6386ece898 Add more editor modes
Available modes are: 'essential', 'simple', 'basic', 'advanced'
2023-06-16 18:52:02 +03:00
iliajie
ead4e97574 Fix to abstract HTML editor setup 2023-06-16 18:37:15 +03:00
iliajie
209ee473de Fix missing signature ; revert to using mail toolbar for mail 2023-06-16 17:53:48 +03:00
iliajie
4e06d22d85 Fix not to display empty toolbar container 2023-06-16 17:47:04 +03:00
iliajie
a70a0de807 Add formula support using Katex 2023-06-16 16:45:23 +03:00
iliajie
2788697c25 Fix to automate detection of installed modules 2023-06-16 16:43:11 +03:00
iliajie
126b96730b Add support for code highlight in HTML editor 2023-06-16 16:20:11 +03:00
iliajie
c24c544225 Fix not to mess with default code highlight 2023-06-16 16:11:47 +03:00
iliajie
7373913b0b Add support for loading extra modules 2023-06-16 15:52:53 +03:00
iliajie
90a21972ad Fix link item to be in a separate block 2023-06-16 15:41:32 +03:00
iliajie
17c3dbcf81 Add support for editor full toolbar 2023-06-16 15:38:42 +03:00
iliajie
2ae51b03fd Update translations 2023-06-16 15:08:06 +03:00
iliajie
a353a11653 Improve design by factoring out HTML editor related subs into a lib 2023-06-16 15:01:34 +03:00
iliajie
61e80f5d9f Update new HTML editor being available globally and for all themes 2023-06-16 14:03:58 +03:00
iliajie
f931b6dc01 Add significant improvements to HTML editor load ; share init function 2023-06-16 13:49:05 +03:00
iliajie
2ae5317946 Fix reply opener background 2023-06-16 12:15:32 +03:00
iliajie
50e4738f61 Fix editor area to have background 2023-06-16 12:10:52 +03:00
iliajie
46a6379510 Fix to remove unnecessary loading of custom CSS 2023-06-16 12:10:32 +03:00
Jamie Cameron
a0ede6b7e9 More work on network manager support 2023-06-15 22:24:00 -07:00
Jamie Cameron
f27277c4eb A quote string might have # inside it 2023-06-15 15:11:25 -07:00
iliajie
d53bace45c Fix reply toggle element to use no fonts for better cross compatibility 2023-06-15 22:54:10 +03:00
iliajie
1b689c4eb9 Fix for SPA themes to utilize the same template 2023-06-15 22:04:04 +03:00
iliajie
5677804487 Fix not to loose signature if exists 2023-06-15 18:17:30 +03:00
iliajie
e70d5ce764 Add support for awesome replies using new HTML editor 2023-06-15 18:17:14 +03:00
iliajie
45d6c8d235 Fix to print date in reply 2023-06-15 18:06:47 +03:00
iliajie
a95ccc006b Add new Quill HTML editor 2023-06-15 18:02:08 +03:00
iliajie
9bcf02a9b0 Fix to still provide Xinha for the old Java File Manager 2023-06-15 17:58:54 +03:00
iliajie
8c5a479d3a Fix to drop old Xinha HTML editor 2023-06-15 17:55:58 +03:00
iliajie
6872d8b6d6 Add support for the new HTML editor in the old theme 2023-06-15 17:51:59 +03:00
iliajie
036c08bb1d Add translations for HTML editor 2023-06-15 17:51:32 +03:00
iliajie
61805cee73 Add blockquote formatting unless exists already 2023-06-15 17:51:16 +03:00
iliajie
665c867601 Fix to never reset font weight 2023-06-15 17:46:20 +03:00
iliajie
3509d76a8c Fix textarea paddings 2023-06-15 13:09:13 +03:00
Jamie Cameron
e55f6d0908 Add missing save button https://forum.virtualmin.com/t/no-save-button-for-ssh-server-host-ssh-keys/121174 2023-06-14 21:38:41 -07:00
Jamie Cameron
b00f24f0b5 Use the right signing key 2023-06-14 21:27:43 -07:00
Jamie Cameron
07a46ff561 Start of work on networkmanager support 2023-06-14 21:27:12 -07:00
Jamie Cameron
5954e40808 IPv6 auto field is called auto6 2023-06-14 16:26:57 -07:00
iliajie
3e9a0e84fc Fix to reduce number of rows by default (HTML mode) 2023-06-13 19:33:38 +03:00
iliajie
a837b21013 Fix to reduce number of rows by default 2023-06-13 18:30:39 +03:00
iliajie
a38229817a Fix missing signature in emails 2023-06-13 18:27:41 +03:00
Jamie Cameron
90c36605e8 Merge branch 'master' of github.com:webmin/webmin 2023-06-13 07:41:52 -07:00
Jamie Cameron
e552c68f7e SSL need to be shut down properly 2023-06-13 07:41:09 -07:00
iliajie
7708bc240c Fix to enable HTML editor by default 2023-06-13 02:45:39 +03:00
Jamie Cameron
f6a3381682 Don't hang if we get a partial line 2023-06-11 19:01:49 -07:00
Jamie Cameron
fffe6fad63 Add option for ProxyPreserveHost https://forum.virtualmin.com/t/looking-to-set-up-a-or-multiple-reverse-proxies/121016/19 2023-06-10 16:33:59 -07:00
Jamie Cameron
cd1345cf30 Merge branch 'master' of github.com:webmin/webmin 2023-06-09 14:56:20 -07:00
Jamie Cameron
e8264986af Add option to ignore file changed errors https://forum.virtualmin.com/t/best-strategy-for-filesystem-backup/121093/5 2023-06-09 14:55:55 -07:00
iliajie
472bd9c0e4 Fix to use microtime in filenames with var_dump sub 2023-06-09 13:51:55 +03:00
iliajie
18552ad5ab Fix table columns width in Firewall module to be proportional #1923 2023-06-09 12:22:18 +03:00
Jamie Cameron
1bdcc54f21 Merge pull request #1917 from webmin/dev/load-email-images-by-server
Add support to load email images using the server (for privacy)
2023-06-08 20:11:02 -07:00
iliajie
ca5c75785d Fix to test Perl version for make_date to support (still) CentOS 6
https://sourceforge.net/p/webadmin/bugs/5622/
2023-06-09 03:21:01 +03:00
iliajie
d0e84297eb Fix for each module have its own XHR library
https://github.com/webmin/webmin/pull/1917#discussion_r1222408167
2023-06-08 14:48:46 +03:00
iliajie
df3b10c449 Revert "Fix file name as can be URL with a tracker, e.g. http://...img.png?1234"
This reverts commit f19acd68b2.
2023-06-08 01:16:32 +03:00
iliajie
72c5e39121 Fix to pass simply $response_headers instead 2023-06-07 22:04:58 +03:00
iliajie
cdd01e41bb Fix to check if defined instead 9a69913ccb (r116945393) 2023-06-07 20:30:27 +03:00
iliajie
5fc5fea30a Fix to reference ul tag 2023-06-07 13:38:28 +03:00
iliajie
a276ca7c14 Update language string for PostgreSQL 2023-06-07 12:58:27 +03:00
iliajie
a58fcffcb3 Fix error styling in PostgreSQL index page 2023-06-07 12:58:04 +03:00
iliajie
12bca2adb8 Fix missing dash in key name 2023-06-07 11:49:42 +03:00
iliajie
33fd258c71 Fix to abstract Webmin key name and OS type used in key names 2023-06-07 11:46:43 +03:00
iliajie
9a69913ccb Fix not to set response headers unless requested
https://github.com/webmin/webmin/pull/1917#discussion_r1220002442
2023-06-06 22:44:23 +03:00
iliajie
3d67e17cef Fix indent https://github.com/webmin/webmin/pull/1917#discussion_r1219998798 2023-06-06 22:19:48 +03:00
iliajie
61a40022d7 Add error handling https://github.com/webmin/webmin/pull/1917#discussion_r1219997915 2023-06-06 22:14:11 +03:00
Jamie Cameron
5a7dd1a458 Sign with SHA-256 signature 2023-06-05 22:55:57 -07:00
Jamie Cameron
74202c964f Dev version bump 2023-06-05 22:39:04 -07:00
iliajie
dc7d517989 Remove debug line 2023-06-06 01:15:21 +03:00
iliajie
b662f8d0c3 Fix code indent ; remove spinner once 2023-06-06 01:08:36 +03:00
iliajie
191ea97ea7 Fix to name containing row 2023-06-06 00:33:47 +03:00
iliajie
b0f33b6156 Fix code indents 2023-06-05 14:11:26 +03:00
iliajie
98b67cd60e Fix not to install old Webmin key at all #1919 2023-06-05 13:28:36 +03:00
iliajie
edffeba60b Fix to drop any local MIME type checks
https://github.com/webmin/webmin/pull/1917#discussion_r1217241079
2023-06-05 11:57:56 +03:00
Jamie Cameron
88ae0b68f0 Make wording clearer 2023-06-04 19:52:22 -07:00
iliajie
303b5ee31a Fix indent 2023-06-05 00:47:15 +03:00
iliajie
f694b01535 Fix to escape image URL before sending to the server 2023-06-05 00:35:51 +03:00
iliajie
37857ceeed Fix to try to use content type from response header
https://github.com/webmin/webmin/pull/1917#discussion_r1215792940
2023-06-04 15:12:31 +03:00
iliajie
5b8239c239 Add ability to return response headers 2023-06-04 15:11:08 +03:00
iliajie
8e3fdf43b0 Fix not to use pointless temp file 2023-06-03 22:33:18 +03:00
Jamie Cameron
c7198232f5 Fix wording a little 2023-06-03 11:09:53 -07:00
Jamie Cameron
3855a5f480 Merge branch 'master' of github.com:webmin/webmin 2023-06-02 08:02:19 -07:00
Jamie Cameron
37a03e720c Look in /etc/firewalld/services as well 2023-06-02 08:02:00 -07:00
iliajie
58229c1653 Fix to drop no longer needed and potentially dangerous head_html 2023-06-02 12:49:23 +03:00
iliajie
4ee13f0e20 Fix not to disable referrer check as there is no need for it
https://github.com/webmin/webmin/pull/1917#discussion_r1213968009
2023-06-02 11:36:30 +03:00
iliajie
8d66b62fce Add to use HTML::Entities to try to decode all possible entities
https://github.com/webmin/webmin/pull/1917#discussion_r1213969328
2023-06-02 11:25:27 +03:00
iliajie
eae51d8492 Fix to simplify: remove pre-loader and just load naturally 2023-06-02 02:56:32 +03:00
iliajie
1a0dec8f1e Add image pre-loaders to be awesome 2023-06-02 01:16:07 +03:00
iliajie
991e10a266 Add a robust way for testing file MIME type 2023-06-01 23:09:12 +03:00
iliajie
ec21297448 Add API to unescape HTML entities 2023-06-01 23:00:52 +03:00
iliajie
b97acb1e21 Fix to default to use server loaded images 2023-06-01 18:08:22 +03:00
iliajie
02236da8bc Fix to checkout master commits (added by accident) 2023-06-01 18:05:24 +03:00
iliajie
b3ab3f65a8 Revert "Merge branch 'master' into dev/load-email-images-by-server"
This reverts commit a5ba7ebe05, reversing
changes made to 0e93560003.
2023-06-01 17:59:31 +03:00
Ilia
a5ba7ebe05 Merge branch 'master' into dev/load-email-images-by-server 2023-06-01 17:57:09 +03:00
iliajie
0e93560003 Fix to drop wrong comment 2023-06-01 17:51:09 +03:00
iliajie
35922c6da6 Set x-no-links header 2023-06-01 17:49:19 +03:00
iliajie
71267fb601 Add XHR API to be called using JavaScript 2023-06-01 17:48:04 +03:00
iliajie
6a079198bd Add the reference for the images to load 2023-06-01 17:47:14 +03:00
iliajie
88bd2825ab Add an option to control how to view images 2023-06-01 17:42:24 +03:00
Jamie Cameron
13da04673f Finish off fix to APT repo 2023-06-01 07:11:41 -07:00
Jamie Cameron
68d6d831a1 Merge branch 'master' of github.com:webmin/webmin 2023-05-31 16:09:40 -07:00
Jamie Cameron
23bd2fbe3f Handle case where a URL has an @ towards the end 2023-05-31 16:09:34 -07:00
iliajie
e56298f55b Fix to remove stray } 2023-06-01 00:39:21 +03:00
iliajie
f19acd68b2 Fix file name as can be URL with a tracker, e.g. http://...img.png?1234 2023-05-31 23:28:19 +03:00
Jamie Cameron
57df3868b5 Merge pull request #1915 from webmin/dev/improve-view-mail
Add support for properly displaying HTML emails
2023-05-31 11:24:43 -07:00
iliajie
ff140aab1b Merge remote-tracking branch 'origin/master' 2023-05-31 20:43:45 +03:00
iliajie
754f1efc66 Revert "Fix missing HTML escapes for select option"
This reverts commit 04d75bc526.
2023-05-31 20:42:25 +03:00
Jamie Cameron
2d9ddefe50 More work on fixing the debian repo 2023-05-31 07:52:11 -07:00
Jamie Cameron
aa01bc8231 Merge branch 'master' of github.com:webmin/webmin 2023-05-31 07:51:27 -07:00
Jamie Cameron
add8a4eff6 Fix repo path 2023-05-31 07:51:20 -07:00
iliajie
605a32f87d Fix to add a proper check with negative lookahead before escaping & 2023-05-31 13:44:50 +03:00
Jamie Cameron
7988abf900 Merge branch 'master' of github.com:webmin/webmin 2023-05-30 21:54:46 -07:00
Jamie Cameron
08141fae66 Which APT to use the new repo with the new key 2023-05-30 21:53:37 -07:00
Jamie Cameron
2be85afce9 Merge pull request #1916 from webmin/dev/no-quotemeta-for-row-id
Fix to make sure that `id`s will always match
2023-05-30 16:10:06 -07:00
iliajie
e77b97bc5f Fix to make sure that ids will always match 2023-05-30 22:32:36 +03:00
Jamie Cameron
385d006c08 Build in old and new repo directories 2023-05-29 22:35:12 -07:00
Jamie Cameron
5db29277e4 Import the new key 2023-05-29 19:44:21 -07:00
Jamie Cameron
21f4a9b368 Fix the Webmin repo if the old URL is being used 2023-05-29 18:33:29 -07:00
578 changed files with 7792 additions and 405 deletions

File diff suppressed because one or more lines are too long

View File

@@ -207,7 +207,7 @@ if ($access{'lang'}) {
if ($access{'locale'}) {
# Current locale
eval "use DateTime; use DateTime::Locale; use DateTime::TimeZone;";
if (!$@) {
if (!$@ && $] > 5.011) {
my $locales = &list_locales();
my %localesrev = reverse %{$locales};
my $locale_auto = &parse_accepted_language();

View File

@@ -1041,7 +1041,7 @@ sub edit_LimitRequestBody
{
return (1, $text{'core_maxbody'},
&opt_input($_[0]->{'value'}, "LimitRequestBody", $text{'core_default'}, 8)
.$text{'bytes'});
.&ui_space(2).$text{'bytes'});
}
sub save_LimitRequestBody
{
@@ -1052,7 +1052,7 @@ sub edit_LimitXMLRequestBody
{
return (1, $text{'core_maxxml'},
&opt_input($_[0]->{'value'}, "LimitXMLRequestBody",
$text{'core_default'}, 8).$text{'bytes'});
$text{'core_default'}, 8).&ui_space(2).$text{'bytes'});
}
sub save_LimitXMLRequestBody
{

View File

@@ -637,6 +637,7 @@ mod_proxy_preserve=Preserve original Host: header
mod_proxy_timeout=Proxy request timeout in seconds
mod_proxy_etimeout=Proxy request timeout must be a number of seconds
mod_proxy_via=Set Via: headers
mod_proxy_preserve=Preserve original HTTP host
mod_proxy_not=None
mod_log_agent_default=Default

View File

@@ -25,6 +25,7 @@ $rv = [ [ 'ProxyRequests', 0, 13, 'virtual', undef, 11 ],
[ 'ProxyMaxForwards', 0, 13, 'virtual', 2.0 ],
[ 'ProxyPreserveHost', 0, 13, 'virtual', 2.031 ],
[ 'ProxyTimeout', 0, 13, 'virtual', 2.031 ],
[ 'ProxyPreserveHost', 0, 13, 'virtual', 2.3 ],
[ 'ProxyVia', 0, 13, 'virtual', 2.0 ] ];
return &make_directives($rv, $_[0], "mod_proxy");
}
@@ -291,7 +292,16 @@ sub save_ProxyVia
return &parse_choice("ProxyVia", "");
}
sub edit_ProxyPreserveHost
{
return (1, $text{'mod_proxy_preserve'},
&choice_input($_[0]->{'value'}, "ProxyPreserveHost", "",
"$text{'yes'},on", "$text{'no'},off", "$text{'default'},"));
}
sub save_ProxyPreserveHost
{
return &parse_choice("ProxyPreserveHost", "");
}
1;

View File

@@ -13,6 +13,7 @@ sub edit_SuexecUserGroup
local $rv;
$rv .= sprintf "<input type=radio name=SuexecUserGroup_def value=1 %s> %s\n",
$_[0] ? "" : "checked", $text{'suexec_none'};
$rv .= &ui_newline();
$rv .= sprintf "<input type=radio name=SuexecUserGroup_def value=0 %s>\n",
$_[0] ? "checked" : "";
$rv .= sprintf "%s <input name=SuexecUserGroup_u size=8 value='%s'> %s\n",

View File

@@ -65,10 +65,10 @@ our @dnssec_dlv_key = ( 257, 3, 5, '"BEAAAAPHMu/5onzrEE7z1egmhg/WPO0+juoZrW3euWE
my $rand_flag;
if ($gconfig{'os_type'} =~ /-linux$/ &&
$config{'force_random'} eq '0' &&
-r "/dev/urandom" &&
!$config{'force_random'} &&
$bind_version &&
&compare_version_numbers($bind_version, '9.14') < 0) {
$bind_version =~ /^9\./ &&
&compare_version_numbers($bind_version, '<', '9.14.2')) {
# Version: 9.14.2 deprecated the use of -r option
# in favor of using /dev/random [bugs:#5370]
$rand_flag = "-r /dev/urandom";

View File

@@ -17,6 +17,14 @@ my $dom = $zone->{'name'};
&ui_print_header(&zone_subhead($zone), $text{'master_title'}, "",
undef, undef, undef, undef, &restart_links($zone));
my $d = &get_virtualmin_domains($dom);
if ($d && $d->{'alias'}) {
print &ui_alert_box($text{'master_vminalias'}, 'danger');
}
elsif ($d) {
print &ui_alert_box($text{'master_vmin'}, 'warn');
}
# Find the record types
my (@rcodes, @recs);
if (!$config{'largezones'}) {

View File

@@ -147,6 +147,8 @@ master_defttl=Default time-to-live for records
master_edefttl='$1' is not a valid default time-to-live for records
master_esoagone=No SOA record found!
master_einclude=Additional template file does not exist
master_vmin=This zone is managed by Virtualmin. Records should be edited using the Virtualmin UI, to ensure they are consistent with other virtual server settings.
master_vminalias=This zone is an alias of a Virtualmin domain, which is kept in sync with it's target. Records should never be edited here, as any changes will be overwritten!
delete_title=Delete Zone
delete_mesg=Are you sure you want to delete the zone $1 ? All records and the zone file will be deleted.

View File

@@ -59,9 +59,9 @@ if ($access{'lang'}) {
# Old datetime format or a new locale
if ($access{'locale'}) {
eval "use DateTime; use DateTime::Locale; use DateTime::TimeZone;";
&foreign_require('webmin');
if (!$@) {
eval "use DateTime; use DateTime::Locale; use DateTime::TimeZone;";
if (!$@ && $] > 5.011) {
my $locales = &list_locales();
my %localesrev = reverse %{$locales};
my $locale = $locale_auto || $gconfig{'locale'} || &get_default_system_locale();

View File

@@ -925,7 +925,7 @@ $table .= &ui_columns_row(\@cols, [ "valign=top", "valign=top", "valign=top",
"valign=top", "valign=top" ]);
$table .= &ui_columns_end();
$table .= $text{'edit_ctrl'};
$rv .= &ui_table_row(undef, $table, $width);
$rv .= &ui_table_row(undef, $table, $width, undef, ['data-schedule-tr']);
return $rv;
}

View File

@@ -74,12 +74,12 @@ open(FILE, "<".$_[0]);
while($line = <FILE>) {
# strip comments
$line =~ s/\r|\n//g;
$line =~ s/([^\\])\\"/$1\\042/g; # convert escaped quotes to \042
$line =~ s/^([^"#]*)#.*$/$1/g;
$line =~ s/^([^"]*)\/\/.*$/$1/g;
$line =~ s/^([^"]*)\s+#.*$/$1/g; # remove stuff after #, unless
$line =~ s/^(.*".*".*)\s+#.*$/$1/g; # it is inside quotes
$line =~ s/\\\\/\\134/g; # convert \\ into \134
$line =~ s/([^\\])\\"/$1\\042/g; # convert escaped quotes to \042
while(1) {
if (!$cmode && $line =~ /\/\*/ && $line !~ /\".*\/\*.*\"/) {
# start of a C-style comment

View File

@@ -1 +0,0 @@
../mailboxes/xinha

View File

Before

Width:  |  Height:  |  Size: 57 B

After

Width:  |  Height:  |  Size: 57 B

View File

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 63 B

View File

Before

Width:  |  Height:  |  Size: 69 B

After

Width:  |  Height:  |  Size: 69 B

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View File

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

View File

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

View File

Before

Width:  |  Height:  |  Size: 131 B

After

Width:  |  Height:  |  Size: 131 B

View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View File

Before

Width:  |  Height:  |  Size: 57 B

After

Width:  |  Height:  |  Size: 57 B

View File

Before

Width:  |  Height:  |  Size: 63 B

After

Width:  |  Height:  |  Size: 63 B

View File

Before

Width:  |  Height:  |  Size: 69 B

After

Width:  |  Height:  |  Size: 69 B

View File

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View File

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

Before

Width:  |  Height:  |  Size: 61 B

After

Width:  |  Height:  |  Size: 61 B

View File

Before

Width:  |  Height:  |  Size: 60 B

After

Width:  |  Height:  |  Size: 60 B

View File

Before

Width:  |  Height:  |  Size: 60 B

After

Width:  |  Height:  |  Size: 60 B

View File

Before

Width:  |  Height:  |  Size: 61 B

After

Width:  |  Height:  |  Size: 61 B

View File

Before

Width:  |  Height:  |  Size: 56 B

After

Width:  |  Height:  |  Size: 56 B

View File

Before

Width:  |  Height:  |  Size: 6.5 KiB

After

Width:  |  Height:  |  Size: 6.5 KiB

View File

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View File

Before

Width:  |  Height:  |  Size: 172 B

After

Width:  |  Height:  |  Size: 172 B

View File

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

View File

Before

Width:  |  Height:  |  Size: 97 B

After

Width:  |  Height:  |  Size: 97 B

View File

Before

Width:  |  Height:  |  Size: 50 B

After

Width:  |  Height:  |  Size: 50 B

View File

Before

Width:  |  Height:  |  Size: 78 B

After

Width:  |  Height:  |  Size: 78 B

View File

Before

Width:  |  Height:  |  Size: 80 B

After

Width:  |  Height:  |  Size: 80 B

View File

Before

Width:  |  Height:  |  Size: 57 B

After

Width:  |  Height:  |  Size: 57 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 66 B

After

Width:  |  Height:  |  Size: 66 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 69 B

After

Width:  |  Height:  |  Size: 69 B

View File

Before

Width:  |  Height:  |  Size: 55 B

After

Width:  |  Height:  |  Size: 55 B

View File

Before

Width:  |  Height:  |  Size: 53 B

After

Width:  |  Height:  |  Size: 53 B

View File

Before

Width:  |  Height:  |  Size: 64 B

After

Width:  |  Height:  |  Size: 64 B

View File

Before

Width:  |  Height:  |  Size: 125 B

After

Width:  |  Height:  |  Size: 125 B

View File

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 84 B

View File

Before

Width:  |  Height:  |  Size: 84 B

After

Width:  |  Height:  |  Size: 84 B

View File

Before

Width:  |  Height:  |  Size: 151 B

After

Width:  |  Height:  |  Size: 151 B

View File

Before

Width:  |  Height:  |  Size: 72 B

After

Width:  |  Height:  |  Size: 72 B

View File

Before

Width:  |  Height:  |  Size: 78 B

After

Width:  |  Height:  |  Size: 78 B

View File

Before

Width:  |  Height:  |  Size: 72 B

After

Width:  |  Height:  |  Size: 72 B

View File

Before

Width:  |  Height:  |  Size: 76 B

After

Width:  |  Height:  |  Size: 76 B

View File

Before

Width:  |  Height:  |  Size: 100 B

After

Width:  |  Height:  |  Size: 100 B

View File

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 126 B

View File

Before

Width:  |  Height:  |  Size: 117 B

After

Width:  |  Height:  |  Size: 117 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 75 B

After

Width:  |  Height:  |  Size: 75 B

View File

Before

Width:  |  Height:  |  Size: 105 B

After

Width:  |  Height:  |  Size: 105 B

View File

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

View File

Before

Width:  |  Height:  |  Size: 230 B

After

Width:  |  Height:  |  Size: 230 B

View File

Before

Width:  |  Height:  |  Size: 104 B

After

Width:  |  Height:  |  Size: 104 B

View File

Before

Width:  |  Height:  |  Size: 150 B

After

Width:  |  Height:  |  Size: 150 B

View File

Before

Width:  |  Height:  |  Size: 88 B

After

Width:  |  Height:  |  Size: 88 B

View File

Before

Width:  |  Height:  |  Size: 82 B

After

Width:  |  Height:  |  Size: 82 B

View File

Before

Width:  |  Height:  |  Size: 111 B

After

Width:  |  Height:  |  Size: 111 B

View File

Before

Width:  |  Height:  |  Size: 67 B

After

Width:  |  Height:  |  Size: 67 B

View File

Before

Width:  |  Height:  |  Size: 652 B

After

Width:  |  Height:  |  Size: 652 B

View File

Before

Width:  |  Height:  |  Size: 128 B

After

Width:  |  Height:  |  Size: 128 B

View File

Before

Width:  |  Height:  |  Size: 131 B

After

Width:  |  Height:  |  Size: 131 B

View File

Before

Width:  |  Height:  |  Size: 134 B

After

Width:  |  Height:  |  Size: 134 B

View File

Before

Width:  |  Height:  |  Size: 87 B

After

Width:  |  Height:  |  Size: 87 B

View File

Before

Width:  |  Height:  |  Size: 87 B

After

Width:  |  Height:  |  Size: 87 B

View File

Before

Width:  |  Height:  |  Size: 104 B

After

Width:  |  Height:  |  Size: 104 B

View File

Before

Width:  |  Height:  |  Size: 148 B

After

Width:  |  Height:  |  Size: 148 B

View File

Before

Width:  |  Height:  |  Size: 638 B

After

Width:  |  Height:  |  Size: 638 B

Some files were not shown because too many files have changed in this diff Show More