Commit Graph

33 Commits

Author SHA1 Message Date
Michael Voříšek
6a5f9ee7ce Add override method attributes (#9272) 2024-06-02 15:57:56 +02:00
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
2024-02-02 07:53:34 +01:00
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
2024-01-04 14:26:35 +01:00
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
2023-12-31 16:36:55 +01:00
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>
2023-12-16 15:37:43 +01:00
Aleksander Machniak
f2688ba492 Use ?? operator where applicable 2021-09-21 19:12:06 +02:00
Aleksander Machniak
c268a6a240 Fix PHP8 warnings 2021-06-27 07:55:15 +02:00
Aleksander Machniak
db789bbb61 PHP8 fixes 2020-12-19 09:06:46 +01:00
Aleksander Machniak
e3416c9fc0 PHP8 fixes, CS fixes, short array syntax, tests 2020-12-06 11:43:56 +01:00
Aleksander Machniak
d7d7ca046f Cache refactoring (#6312) (#6781) 2020-07-18 13:51:47 +02:00
Lucas Stevanelli Marin
620c973280 Changing from time to microtime to add on key of cached attachment to avoid display error on attachments with same name (#7463)
Co-authored-by: Lucas Marin <lucas.marin@skymail.com.br>
2020-07-01 09:47:00 +02:00
Aleksander Machniak
45a6ad1ba7 Fix so an error is logged when more than one attachment plugin has been enabled, initialize the first one (#6735) 2019-05-01 21:51:22 +02:00
Aleksander Machniak
57c67db029 Remove year(s) from copyright headers + some cleanup 2019-04-16 10:42:45 +02:00
Aleksander Machniak
6e7afe5360 Support Redis cache in redundant_attachments plugin 2018-03-17 15:27:15 +01:00
Aleksander Machniak
2a32f51c91 Fix file disclosure vulnerability caused by insuficient input validation in relation with attachment plugins (#6026) 2017-11-08 11:03:19 +01:00
Aleksander Machniak
391d0d2039 Remove "@version @package_version@" 2016-11-01 18:26:47 +01:00
Aleksander Machniak
9f1f754daf CS fixes 2015-11-22 09:41:53 +01:00
Aleksander Machniak
37e9bd4fb8 Fix testing attachments plugins after recent change that prevents from using more than one 2015-10-22 08:45:26 +02:00
Aleksander Machniak
b0349c988f Make sure there's only one attachments plugin enabled 2015-10-18 09:59:47 +02:00
Aleksander Machniak
0389faa327 PHP7: Fix "mktime(): You should be using the time() function instead" warning 2015-09-28 19:33:13 +02:00
Aleksander Machniak
e9ca5e0655 Fix so database_attachments::cleanup() does not remove attachments from other sessions (#1490542) 2015-09-28 19:20:24 +02:00
Aleksander Machniak
b3bf9c88dc Fix attached file path unsetting in database_attachments plugin (#1490393) 2015-05-19 09:26:55 +02:00
Aleksander Machniak
46d316b9c5 Fix bug where database_attachments_cache setting was not working 2015-05-13 10:15:11 +02:00
Aleksander Machniak
e435d3b120 Fix fatal error in database_attachments plugin under some conditions (#1489726) 2014-03-25 15:40:53 +01:00
Aleksander Machniak
2feba7bf4d Use absolute path in require 2013-08-02 09:17:44 +02:00
Aleksander Machniak
5d0cb00d5e Fix removing attachments from the list with database_attachments plugin 2013-07-31 14:11:59 +02:00
Aleksander Machniak
f0398c87d9 Use rcube_cache class to store attachments in database.
Add options to configure TTL and cache type.
2013-06-13 14:16:00 +02:00
Aleksander Machniak
61be822d62 Remove deprecated functions (from bc.php file) usage in plugins 2013-01-18 15:24:49 +01:00
Aleksander Machniak
b3ef217f66 Fix removed cache_id column usage, SQL queries formatting 2012-09-18 11:40:38 +02:00
thomascube
48e9c14ebd Move plugins repository into roundcubemail root folder; svn:externals are not defined anymore 2012-03-31 12:25:48 +00:00
till
63a3dc5fde moved plugins 2010-03-20 14:20:01 +00:00
alecpl
a640647edd - handle big attachments with file pointers to not exceed memory_limit in rcmail_save_attachment() 2009-07-19 09:28:30 +00:00
thomascube
cc97ea0559 Merged branch devel-api (from r2208 to r2387) back into trunk (omitting some sample plugins) 2009-04-19 17:44:29 +00:00