Aleksander Machniak
0675156ab2
Add dummy index.php
6 months ago
Aleksander Machniak
64df318a73
Add static files server ( #9294 )
Make use of public_html mandatory
6 months ago
Philip Weir
ccede1f272
Update links in comments and config to https where available ( #9759 )
6 months ago
Michael Voříšek
a30e0ad438
Infer file/line location in rcube::raise_error() from backtrace ( #9422 )
* \n\s+'file' => __FILE__,
* \n\s+'line' => __LINE__,
* 'line' => __LINE__, 'file' => __FILE__,
* 'file' => __FILE__, 'line' => __LINE__,
* rest
* more
* improve cs
* more cs
* revert rcube_utils::preg_error changes
* impl file/line from backtrace
* Revert "revert rcube_utils::preg_error changes"
1 year ago
Michael Voříšek
d18406a8bd
Fix binary operator spaces CS ( #9330 )
* align_single_space_minimal for assign
* assign operators grouping is not supported by PHP CS Fixer
* binary_operator_spaces = single_space
* fix anonymous function on single line
* align comments manually
2 years ago
Michael Voříšek
b1a0067e5d
Fix more CS ( #9303 )
* fix "class_attributes_separation"
* fix "ternary_to_null_coalescing"
* fix "no_extra_blank_lines"
* fix "php_unit_data_provider_name" - use snake_case
* fix remaining "function data_" manually
* move "php_unit_test_case_static_method_calls" to a better place in cnf
* fix 3.47.1 CS
2 years ago
Michael Voříšek
6a53a1d853
Fix CS (whitespace, visibility) ( #9297 )
* Fix "method_argument_space"
* Fix "control_structure_continuation_position"
* Fix "new_with_parentheses"
* Fix "blank_line_before_statement"
* Fix "visibility_required"
* Fix some "array_indentation"
* Fix some "array_indentation" - unify all "rcube::raise_error" calls
* rm useless eslint ignores and add rules counts
* sort eslint ignores
* fix eslint ignores grammar
* Revert "Fix "blank_line_before_statement""
* fix CS 3.46.0
2 years ago
Michael Voříšek
2643be3eaa
Fix single quotes CS ( #9283 )
* Fix "single_quote"
* fix "escape_implicit_backslashes"
* fix typo from f363481c
* fix single quotes in JS
* fix some minor JS CS
* fix CS v3.45.0
2 years ago
Michael Voříšek
e7d7e62146
Modernize more basic CS II ( #9254 )
* fix "integer_literal_case"
* fix "phpdoc_separation"
* fix "phpdoc_var_without_name"
* fix "operator_linebreak"
* fix "no_alias_language_construct_call"
* fix "list_syntax"
* fix "concat_space"
* fix "array_syntax"
* fix "binary_operator_spaces"
* fix "binary_operator_spaces" relaxed
* fix "phpdoc_types_order"
* fix "phpdoc_trim"
* fix "native_type_declaration_casing"
* fix "method_chaining_indentation"
* fix "phpdoc_no_package"
* fix "elseif"
* fix PHP CS Fixer config itself too
* fix "native_type_declaration_casing"
2 years ago
Michael Voříšek
ca8b17d191
Modernize more basic CS ( #9258 )
* fix "yoda_style"
* fix "is_null"
* rm useless rule ignores
* add full "PhpCsFixer:risky" ruleset
* fix "implode_call"
* fix "no_alias_functions"
* fix "array_push"
* fix "long_to_shorthand_operator"
* fix "ternary_to_elvis_operator"
* fix "logical_operators"
* fix "fopen_flags"
* rename "returns" phpdoc tags to "return"
* fix "php_unit_construct"
* fix "function_to_constant"
* fix "php_unit_data_provider_return_type"
* fix "php_unit_set_up_tear_down_visibility"
* some safe "string_length_to_empty"
* fix "phpdoc_align"
* fix "phpdoc_no_alias_tag"
* fix "trailing_comma_in_multiline"
---------
Co-authored-by: Aleksander Machniak <alec@alec.pl>
2 years ago
Edouard Vanbelle
588a879107
OAuth improvements ( #9217 )
- OAuth: Add `oauth_config_uri` - support OAuth/OpenIDC discovery (#8201 )
- OAuth: Add `oauth_logout_uri` - allow invalidating the OAUTH-Session on logout (#8057 )
- OAuth: Support for OpenID Connect RP-Initiated Logout (#9109 )
- OAuth: Add support of OAUTHBEARER (#9217 )
- OAuth: Add `oauth_debug` option (#9217 )
- OAuth: Fix: missing config `oauth_provider_name` in rcmail_oauth's constructor (#9217 )
- OAuth: Refactor: move display to the rcmail_oauth class and use `loginform_content` hook (#9217 )
Signed-off-by: Edouard Vanbelle <edouard@vanbelle.fr>
Co-authored-by: Aleksander Machniak <alec@alec.pl>
2 years ago
Michael Voříšek
a8707ae220
Fix and assert basic CS using CI ( #9246 )
* Assert CS using CI
* fix "single_blank_line_at_eof"
* fix "statement_indentation"
* fix "switch_case_semicolon_to_colon"
* fix "control_structure_braces"
* fix "statement_indentation"
* fix "no_whitespace_in_blank_line"
* fix "no_trailing_whitespace_in_comment"
* fix "no_trailing_whitespace"
* fix "single_space_around_construct"
* fix "spaces_inside_parentheses"
* fix "ternary_operator_spaces"
* fix "trim_array_spaces"
* fix "whitespace_after_comma_in_array"
* fix "cast_spaces"
* fix "unary_operator_spaces"
* fix "no_trailing_comma_in_singleline"
* fix "ordered_imports"
* fix "no_unused_imports"
* Check composer.json format
* fix CI job name
* file header comments are not phpdoc
* fix "phpdoc_indent"
* fix "braces_position"
* fix "phpdoc_types"
* fix "no_blank_lines_after_class_opening"
* fix "no_multiple_statements_per_line"
* fix "multiline_comment_opening_closing"
* fix "single_line_empty_body"
* fix "non_printable_character"
* fix "phpdoc_trim_consecutive_blank_line_separation"
* fix "include"
* fix "no_mixed_echo_print"
---------
Co-authored-by: Aleksander Machniak <alec@alec.pl>
2 years ago
Aleksander Machniak
a20445fcc5
Fix potential HTTP protocol version mismatch ( #8982 )
2 years ago
Aleksander Machniak
42f9cdceba
Master is 1.7-git
3 years ago
Aleksander Machniak
f429b26810
Fix various PHP8 warnings ( #8392 )
4 years ago
Aleksander Machniak
eec0d2b578
Display a generic error page on initial DB/configuration errors ( #8222 )
4 years ago
Aleksander Machniak
6f435ecb52
Fix fatal error/warning on invalid input to user parameter ( #8152 )
Added a new utility method: rcube_utils::get_input_string()
4 years ago
Aleksander Machniak
b4fd75d6c1
Master is 1.6-git now
4 years ago
Aleksander Machniak
0d676625d8
Fix PHP8 warning
4 years ago
Aleksander Machniak
5ec509f87e
FIX PHP8 fatal error and some warnings ( #7931 )
4 years ago
Aleksander Machniak
b3677c3e0b
Fix oauth action run
5 years ago
johndoh
cfd4fa170f
Fix a few PHP notices ( #7791 )
5 years ago
Aleksander Machniak
dcfd12e98a
CS fixes, potential PHP8 warning ( #7781 )
5 years ago
Aleksander Machniak
545a1569f1
Steps -> Actions refactoring ( #7688 )
* Move action handling code to rcmail class
* Add rcmail_action class
* Add action aliases
* Get rid of $OUTPUT global
* Move some methods from rcmail to rcmail_action
* PHP8 compat. fixes
* Add framework for testing actions
* Fix obvious code mistakes
5 years ago
Aleksander Machniak
f95212d626
PHP8: More warnings fixed
5 years ago
Thomas Bruederli
c9beef0bc2
Check if OAuth is enabled before including `oauth.inc` step file
5 years ago
Thomas Bruederli
1e6a2f4f49
Basic support for OAuth2 user login and IMAP/SMTP authentication
- Add "Login with XXX" button to login screen if oauth is configured
- Perform OAuth login procedure and get an access token
- Implement XOAUTH2 authentication type for IAMP and SMTP
Requires a patched and not yet released version of Net_SMTP.
6 years ago
Aleksander Machniak
8344f07d7f
Fix CSRF bypass that could be used to log out an authenticated user ( #7302 )
5 years ago
Aleksander Machniak
ee1f01a0df
Fix so 401 error is returned only on failed logon requests ( #7010 )
6 years ago
Aleksander Machniak
508e83470c
Master is 1.5-git now
6 years ago
Aleksander Machniak
b8555ce4f3
Fix so 401 error is returned only on failed logon requests ( #7010 )
6 years ago
Aleksander Machniak
9f1d185c44
Master is 1.5-git now
6 years ago
Aleksander Machniak
f1a83f923d
Added cookie mismatch detection, display an error message informing the user to clear cookies
6 years ago
Aleksander Machniak
57c67db029
Remove year(s) from copyright headers + some cleanup
6 years ago
Aleksander Machniak
11216a1925
Changed 'password_charset' default to 'UTF-8' ( #6522 )
7 years ago
Aleksander Machniak
186f21c4c1
Avoid Referer leaking by using Referrer-Policy:same-origin header ( #6385 )
Added 'common_headers' hook
7 years ago
Aleksander Machniak
f1ee6d7906
Plugin API: Add possibility to specify HTTP return code via 'unauthenticated' hook
7 years ago
Aleksander Machniak
e4ccc2bb48
Update copyright year in few places
7 years ago
Aleksander Machniak
fb2f213d6f
Add id attribute to the installer warning
8 years ago
Aleksander Machniak
2cb9de358b
Return "401 Unauthorized" status when login fails ( #5663 )
8 years ago
Aleksander Machniak
e51fa197bb
Remove unused variable
8 years ago
Aleksander Machniak
5101cfc67a
Bump version to 1.4-git
8 years ago
Thomas Bruederli
f78e2a4367
Add 1.3-beta milestone + update copyright year
9 years ago
Aleksander Machniak
ad9a55f8cb
Support hostname and hostname:port in force_https option ( #5511 )
9 years ago
Aleksander Machniak
24b4ca52cf
Fix so "Action disabled" error uses more appropriate 404 code ( #5440 )
9 years ago
Aleksander Machniak
b77efcd104
Fix typo
9 years ago
Aleksander Machniak
85082c88c7
CS fixes
9 years ago
Aleksander Machniak
9634169647
Bump version number to 1.3-beta
9 years ago
Aleksander Machniak
a15d877ba8
Added brute-force attack prevention via login rate limit ( #1490566 )
10 years ago
Aleksander Machniak
1b39d9a6c7
PHP7: Fixed some E_WARNING errors that previously were E_STRICT
10 years ago