Leuchtfeuer / typo3-secure-downloads

Secure your assets and data from unwanted download. Apply TYPO3 access rights to ALL file assets (PDFs, TGZs or JPGs etc. - configurable) - protect them from direct access.
https://www.Leuchtfeuer.com
GNU General Public License v2.0
21 stars 34 forks source link

support null value for page arguments #211

Closed devtroll closed 1 month ago

devtroll commented 1 month ago

For some uses, there is no routing value in the request and the creation of the link throws an error.

Error Message was:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: Call to a member function getPageId() on null | Error thrown in file /var/www/html/vendor/leuchtfeuer/secure-downloads/Classes/Factory/SecureLinkFactory.php in line 74