From 0c33d2713957eaf6cc0222150df7ebbcb53beaed Mon Sep 17 00:00:00 2001 From: Alexandre Alapetite Date: Mon, 7 Apr 2025 08:47:42 +0200 Subject: Secure serving of user files from extensions (#7495) * Secure serving of user files from extensions fix https://github.com/FreshRSS/FreshRSS/issues/4930 * More fixes * Typo --- docs/fr/developers/03_Backend/05_Extensions.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/fr/developers') diff --git a/docs/fr/developers/03_Backend/05_Extensions.md b/docs/fr/developers/03_Backend/05_Extensions.md index af6c7911a..728d5c843 100644 --- a/docs/fr/developers/03_Backend/05_Extensions.md +++ b/docs/fr/developers/03_Backend/05_Extensions.md @@ -171,9 +171,9 @@ Your class will benefit from four methods to redefine: `getName()`, `getEntrypoint()`, `getPath()` (allows you to retrieve the path to your extension), `getAuthor()`, `getDescription()`, `getVersion()`, `getType()`. -* `getFileUrl($filename, $type)` will return the URL to a file in the - `static` directory. The first parameter is the name of the file (without - `static /`), the second is the type of file to be used (`css` or `js`). +* `getFileUrl(string $filename, bool $isStatic = true): string` will return the URL to a file in the `static` directory. + The first parameter is the name of the file (without `static/`). + Set `$isStatic` to true for user-independent files, and to `false` for files saved in a user’s own directory. * `registerController($base_name)` will tell Minz to take into account the given controller in the routing system. The controller must be located in your `Controllers` directory, the name of the file must be `Controller.php` and the name of the -- cgit v1.2.3