Commit graph

33 commits

Author SHA1 Message Date
Jan Böhmer
05e9b63f89 Fixed exception, when downloading an attachment file, which does not have a usable extension 2023-11-27 18:13:55 +01:00
Jan Böhmer
0af5a58dbe Renamed Storelocation entity to StorageLocation 2023-09-04 22:57:40 +02:00
Jan Böhmer
e8771ea118 Fixed some more phpstan issues 2023-06-18 00:00:58 +02:00
Jan Böhmer
6a2ff9d153 Added declare strict types to all files 2023-06-11 18:59:07 +02:00
Jan Böhmer
5629215ce4 Use imports instead of FQNs 2023-06-11 15:00:28 +02:00
Jan Böhmer
7ee01d9a05 Applied rector with PHP8.1 migration rules 2023-06-11 14:17:19 +02:00
Jan Böhmer
d04d743520 Fixed typos 2023-04-15 23:14:53 +02:00
Jan Böhmer
29d1d49aca Fixed some more inspection issues 2023-04-15 22:05:29 +02:00
Jan Böhmer
27de5ae387 Fixed static analysis issue 2023-03-02 23:57:32 +01:00
Jan Böhmer
e0635f7ead Show maximum allowed file size below the upload field for attachments 2023-03-02 23:38:23 +01:00
Jan Böhmer
ce3cecabaf Save project attachment files under "project/" instead of "device/" 2023-02-12 20:54:53 +01:00
Jan Böhmer
5f5c06d6e9 Fixed problems with attachments on label profiles. 2023-02-03 23:18:14 +01:00
Jan Böhmer
855b3070bb Fix exception when creating an attachment without an file., 2022-12-18 20:55:50 +01:00
Jan Böhmer
0c7ec9f0c7 Added some basic DB fields for the new project system 2022-12-18 20:34:25 +01:00
Jan Böhmer
c6f1758a18 Fixed static analysis 2022-12-18 18:14:48 +01:00
Jan Böhmer
14bbe3d6d6 Rename unsafe file extensions of attachments to prevent XSS and server side code injection. 2022-12-18 18:11:44 +01:00
Jan Böhmer
68462185ba Removed old GPLv2 copyright header 2022-11-29 22:28:53 +01:00
Jan Böhmer
51e05a8669 Use typed properties 2022-09-18 22:59:31 +02:00
Jan Böhmer
d0b1024d80 Fixed code style. 2020-08-21 21:36:22 +02:00
Jan Böhmer
90d3032924 Fixed PHPStan issues. 2020-06-07 16:33:31 +02:00
Jan Böhmer
1b06203ca6 Fixed file extension validation for attachments.
This fixes issue #63.
2020-06-01 15:55:34 +02:00
Jan Böhmer
9e8771a4ee Changed license to AGPL3+ 2020-02-22 18:14:36 +01:00
Jan Böhmer
15957203af Fixed an exception when moving an attachment to private folder. 2020-02-10 22:46:05 +01:00
Jan Böhmer
388e847b17 Applied symplify rules to codebase. 2020-01-05 22:49:00 +01:00
Jan Böhmer
f861de791f Applied code style rules to src/ 2020-01-05 15:46:58 +01:00
Jan Böhmer
9a7223a301 Fixed code style. 2020-01-04 20:24:09 +01:00
Jan Böhmer
e557bdedd5 Added an PHP CS fixer config file and applied it to files.
We now use the same the same style as the symfony project, and it allows us to simply fix the style by executing php_cs_fixer fix in the project root.
2019-11-09 00:47:20 +01:00
Jan Böhmer
787e498586 Updated copyright headers. 2019-11-01 13:40:30 +01:00
Jan Böhmer
c955a3a221 Moved attachment related services into their own namespaces 2019-10-19 23:29:51 +02:00
Jan Böhmer
63dc22f524 Allow to move a attachment to secure location (and back). 2019-10-19 19:30:16 +02:00
Jan Böhmer
9385d28e40 Uploading now works everywhere. Show an flash message if the download fails. 2019-10-19 18:50:17 +02:00
Jan Böhmer
27a001b1d2 Added an option to download a attachment via URL. Implemented secure attachments, which can not be accessed by URL and requires authentication. 2019-10-19 18:42:06 +02:00
Jan Böhmer
d382021fee Moved attachment form submit logic to a seperate service. 2019-10-19 17:13:13 +02:00