429 Commits

Author SHA1 Message Date
Ilia Rostovtsev
1952844ea0 Fix code indent 2018-10-25 12:48:22 +03:00
Ilia Rostovtsev
37a62f7fcb Add ability to print errors in JSON format 2018-10-25 12:45:01 +03:00
Ilia Rostovtsev
6124e7e953 Add JSON decode subroutine 2018-10-23 14:13:17 +03:00
Ilia Rostovtsev
a9d3e2e3c9 Fix possible fatal error for writing a file longer than 255 chars 2018-09-28 11:15:09 +03:00
Ilia Rostovtsev
7f39203f3b Append hex URL representation to stored file name, to process multiple, simultaneous requests https://github.com/authentic-theme/authentic-theme/issues/1196 2018-09-27 13:44:59 +03:00
Jamie Cameron
e092a26592 test change 2018-09-13 14:27:47 +00:00
Ilia Rostovtsev
66c358f984 Revert "An attempt to support various module names https://github.com/virtualmin/virtualmin-gpl/pull/63#issuecomment-419717260"
This reverts commit 0864f12bc1.
2018-09-10 09:40:03 +03:00
Ilia Rostovtsev
0864f12bc1 An attempt to support various module names https://github.com/virtualmin/virtualmin-gpl/pull/63#issuecomment-419717260 2018-09-09 18:56:00 +03:00
Jamie Cameron
774f23b31b Merge branch 'master' of git@github.com:webmin/webmin 2018-08-31 15:59:06 -07:00
Jamie Cameron
98c32e11bc Respect noerror flag when closing a file https://www.virtualmin.com/node/56681 2018-08-31 14:39:46 -07:00
Ilia Rostovtsev
c180a4c91f Fix file inclusion for overlay themes; abstracted meta words replacement 2018-08-30 19:14:08 +03:00
Jamie Cameron
a2e984175e Make it possible for callers to set a zero timeout, meaning none at all 2018-08-29 16:53:35 -07:00
Ilia Rostovtsev
c40230d1db Don't double encode data and don't enforce charset 2018-08-23 14:05:21 +03:00
Ilia Rostovtsev
73de1824db Improve error message response text for JSON:PP 2018-08-23 00:13:27 +03:00
Ilia Rostovtsev
19c5851911 Fix to handle errors properly 2018-08-23 00:08:51 +03:00
Ilia Rostovtsev
8ba9426af1 Add convert_to_json() and print_json() subroutines 2018-08-23 00:00:16 +03:00
Jamie Cameron
1189a9d56c Load the theme library 2018-06-05 13:35:20 -07:00
Ilia Rostovtsev
f6f46eac94 Fix to check for theme_nice_size before declaring variables 2018-06-04 11:01:51 +03:00
Jamie Cameron
82dca72335 Allow web-only theme specific override of nice_size 2018-06-03 15:46:09 -07:00
Jamie Cameron
8152261162 Merge pull request #920 from qooob/patch-29
Print dev version nicely
2018-05-21 22:59:10 -07:00
Jamie Cameron
9962949f45 Include UID in temp dir https://github.com/webmin/webmin/issues/919 2018-05-21 17:07:36 -07:00
Ilia Rostovtsev
d6b8fd7583 Print dev version nicely
When installed from repo, instead of having `1.88305210044` all over UI, let's have `1.883.0521.0044 `.
2018-05-21 13:15:25 +03:00
Jamie Cameron
0eb45125c8 Only call theme make_date override when on a web page https://github.com/webmin/webmin/issues/904 2018-04-28 13:31:49 -07:00
Jamie Cameron
9d1fba6c64 Only call theme make_date override when on a web page https://github.com/webmin/webmin/issues/904 2018-04-28 13:31:11 -07:00
Jamie Cameron
bb6a05afb3 Store content type in main::header_content_type variable https://github.com/webmin/webmin/issues/904 2018-04-28 13:26:25 -07:00
Jamie Cameron
fc1b26cacd Add extra check that /tmp permissions make sense https://www.virtualmin.com/node/56810 2018-04-22 14:13:23 -07:00
Jamie Cameron
8a490e3206 Add extra check to prevent over-writing of global config https://github.com/webmin/webmin/issues/755 2018-04-22 11:42:03 -07:00
Jamie Cameron
0a2e59a7ab API to register error exit functions 2018-04-02 22:05:19 -07:00
Jamie Cameron
229e2a55fe Support array-mode in ReadParse too 2018-03-08 21:33:59 -08:00
Jamie Cameron
bf4c035dbb Add new mode for known single-value inputs 2018-03-08 21:26:47 -08:00
Jamie Cameron
a9cb82ad17 Allow themes to override make_date https://github.com/webmin/webmin/issues/820 2018-03-01 20:24:31 -08:00
Jamie Cameron
6138fb26eb Return actual PID that has taken the lock 2018-02-11 11:51:33 -08:00
Ilia Rostovtsev
61b2c4c533 Allow browser reload work, along with referre check - secure 2018-02-01 12:47:08 +03:00
Jamie Cameron
57d78e39d6 Also read module.info.LANG files https://github.com/webmin/webmin/issues/770 2018-01-28 15:55:06 -08:00
Ilia Rostovtsev
1b4233ba0d Harden checks for redirect and keeping URI 2018-01-18 18:12:32 +03:00
Jamie Cameron
4f73acc28c Merge pull request #773 from qooob/master
Add support for forcing encoding using file comment '-*- coding: encoding -*-'
2018-01-16 09:18:33 -08:00
Ilia Rostovtsev
d13795190b Harded the filter to remove any kind of spaces from string 2018-01-16 14:55:58 +03:00
Jamie Cameron
62edc3dea3 Merge pull request #761 from qooob/master
Fix open theme's link in new tab
2018-01-14 15:54:38 -08:00
Ilia Rostovtsev
0d7effdf5d Open theme's link in the new tab and make sure it passes referre check 2018-01-13 14:52:46 +03:00
Jamie Cameron
d37450a650 Support newer TLS versions https://sourceforge.net/p/webadmin/bugs/5073/ 2018-01-12 22:56:40 -08:00
Ilia Rostovtsev
9fe25551b9 Fix open theme's link in new tab https://github.com/webmin/webmin/pull/724 2018-01-08 11:51:07 +03:00
Jamie Cameron
f218c2bba8 Extract out function for getting the temp dir 2017-12-22 15:17:04 -08:00
yangfl
0f9fb77369 Fix typo 2017-11-08 16:43:37 +08:00
Jamie Cameron
40fa0bcf39 Don't send a zero length content header https://www.virtualmin.com/node/53776 2017-11-04 15:56:24 -07:00
Ilia Rostovtsev
68029cf0e8 Redirect function already deals with prefix
`$gconfig{'webprefix'}` is not needed and will result in its duplicate in case it's set.
2017-10-13 11:50:26 +03:00
Ilia Rostovtsev
536bd1660a Check for trigger URL to simply redirect to root
This is required for Authentic Theme 19.00+

https://github.com/qooob/authentic-theme/issues/844
https://github.com/qooob/authentic-theme/issues/848
2017-10-11 13:11:05 +03:00
Jamie Cameron
76e1b4d24f Allow using of quoted variables like {\$DOM} 2017-09-29 17:01:12 -07:00
Jamie Cameron
6e74b7b6d4 Fix bad indentation and lack of quoting that should never have worked 2017-09-06 18:12:02 -07:00
Jamie Cameron
0c58892732 Escape potentially malicious HTTP headers 2017-09-05 10:35:44 -07:00
Jamie Cameron
f8a6d2db67 Pass down timeout, and use formal params 2017-07-21 21:51:20 -07:00