| #
6c16a3a9 |
| 14-Sep-2023 |
fiwswe <fiwswe@fwml.de> |
Use str_starts_with/str_ends_with
|
| #
d4f83172 |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
code style: line breaks
|
| #
7d34963b |
| 31-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
coding style: control flow line breaks
|
| #
51ee2399 |
| 30-Aug-2023 |
Gerrit Uitslag <klapinklapin@gmail.com> |
update some plugin classes in phpdocs, reformatting
|
| #
8553d24d |
| 30-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector renames
|
| #
5983e241 |
| 29-Aug-2023 |
Andreas Gohr <andi@splitbrain.org> |
Apply rector fixes to inc/Subscriptions
|
| #
e2905cd4 |
| 26-Jan-2023 |
Andreas Gohr <andi@splitbrain.org> |
fix accidental overwriting of variable in bulkmailer #3862
When the bulkmailer tries to skip own or minor edits, it was overwriting $rev with a timestamp instead of using the proper array structure
fix accidental overwriting of variable in bulkmailer #3862
When the bulkmailer tries to skip own or minor edits, it was overwriting $rev with a timestamp instead of using the proper array structure returned by getRevisionInfo().
This also moves the initialization of the PageChangeLog object out of the while loop to ensure it's inner caching mechanism is utilized when fetching the info.
This should fix #3862
show more ...
|
| #
f86a16bc |
| 12-Nov-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
Merge branch 'master' into revisionHandle3
|
| #
252acce3 |
| 23-Oct-2021 |
Satoshi Sahara <sahara.satoshi@gmail.com> |
coding style of functions using ChangeLog
|
| #
bd539124 |
| 14-Aug-2021 |
Andreas Gohr <andi@splitbrain.org> |
:fire: fix the calculation of file permissons
Our config allows to set the values for `dmode` and `fmode` to allow users to explicitly define which permissions directories and files should have.
To
:fire: fix the calculation of file permissons
Our config allows to set the values for `dmode` and `fmode` to allow users to explicitly define which permissions directories and files should have.
To avoid unnessary chmod operations, we check the current umask to compare what permissions files and directories would get witout our intervention. If the result is already what the user wants, no chmods will happen later on. Otherwise we set new configs called `dperm` and `fperm` which will be used in chmod ops. This is done in `init_creationmodes()`
When we created new directories, we used to pass the original `dmode` config to `mkdir()`. The system will then apply the umask to that `dmode`.
This means the resulting directory will *always* have different permissions than `dmode`, *always* requiring a chmod operation. That's silly.
**Breaking Change:** This patch removes the passing of `dmode` as second parameter to all `mkdir` calls, making it default to `0700` which is also what we test against in `init_creationmodes()`.
Plugins not relying on our `io_*` functions and do create their own directories and which currenlty pass `dmode` to it need to be adjusted to remove that second parameter.
Users may want to reapply the proper file permissions to their data folder.
**Revert:** In 9fdcc8fcd87114ca59a1764a84d213a53c655c8c @movatica introduced a change to `init_creationmodes()` that compared the umask against `fmode` instead of `0666`. I merged it because it looked logical when compared to the code for directories which compared against `dmode` as described above. However we do not pass `fmode` to any file creation methods (that's not possible).
The result is that all changes made in the `fmode` setting resulted in the wrong permissions for newly created files as first reported in https://forum.dokuwiki.org/d/19463-setting-fmode-not-working-as-intended
I'm unsure about the orginal motivation behind @movatica's change. The "fix" however, is wrong.
**Tests:** This patch introduces an integration test that will check the actual results of directory and file creations under various umask, `dmode` and `fmode` settings.
show more ...
|
| #
23420346 |
| 26-Jan-2021 |
Damien Regad <dregad@mantisbt.org> |
Fix Undefined array key "fperm" warning
Also removed a few, now unnecessary `!empty` checks
Fixes #3382
|
| #
704a815f |
| 22-Apr-2019 |
Michael Große <mic.grosse@googlemail.com> |
♻️ Split up ChangesSubscriptionSender into multiple classes
This should better adhere to SRP and simplify things.
|