Daniel Rudolf
Daniel Rudolf
> just some issues with wrong links (404) What are the issues? The only error I see is with `$currentPageId = $this->getPico()->getCurrentPage()['id'];` throwing a PHP error when `getCurrentPage()` returns `null`...
* Any particular reason you dropped `Yaml::dump()`? * You do `$this->accessStats[$currentPageId] = 0;` twice in your code * You mustn't use `filesize()` for `fread()` - it's prone to race conditions,...
In `onSinglePageLoading()` you rather do `if ($id === '_stats.md') { $skipFile = true; }`. This tells Pico to simply ignore that page, as if the page never existed. You add...
> But when I copy `$currentPage = $this->getPico()->getCurrentPage();` to `onPagesLoading()` I get an empty value... I must hook on `onCurrentPageDiscovered` Am I doing something wrong? No, my bad, you're right,...
Yeah, a simply wrong sample config might explain why we see support requests for nginx all the time :see_no_evil: Apart from the regexes not being equivalent, can you elaborate why...
> This means anything caught by the existing rule just returns Pico's index.php page as a file (because returning it as a file parameter from the `try_files` directive means it...
I just tasked ChatGPT with this - and it failed miserably at first giving the instructions above, even after multiple correction loops :laughing: However, tasking it with adapting the Apache...
Thanks again @InspectorCaracal! :heart: > ```nginx > location ~ (^/(config|content|content-sample|lib|vendor)/)|(^/(CHANGELOG\.md|composer\.(json|lock|phar))$)|(/\.well-known/) { > ``` I remember that there were some issues with specially crafted requests, requiring `(/|$)` after any path, no...
Last but not least: Do you want to open a PR to incorporate these changes on both [our website](https://github.com/picocms/picocms.github.io) (see `_docs/config.md` and `in-depth/nginx.md`) and Pico itself (see `content-sample/index.md`)?
Switch to `defaults.mailbox.password_scheme = "crypt:sha512"` (or any other `crypt:` scheme) and configure a Dovecot SQL query like the following: ```sql SELECT username AS user, CASE WHEN password LIKE '{%}%' THEN...