tbaddade / redaxo_url

REDAXO 5 AddOn zur URL-Generierung für eigene AddOns (ehemals Url Control, ehemals Frau Schultze)
MIT License
46 stars 22 forks source link

Undefined index: HTTP_HOST, REQUEST_URI #256

Closed staabm closed 1 year ago

staabm commented 2 years ago

sollte diese logic mit isset o.ä. umschlossen werden, damit - wenn aus einem cronjob heraus aufgerufen - keine notices entstehen?

https://github.com/tbaddade/redaxo_url/blob/9bf98b17abe509390c01081fdcde07c5c2d1d559/lib/Url/Url.php#L208-L218

in getPrevious ist das bereits so gehandhabt:

https://github.com/tbaddade/redaxo_url/blob/9bf98b17abe509390c01081fdcde07c5c2d1d559/lib/Url/Url.php#L220-L225