nette / http

🌐 Abstraction for HTTP request, response and session. Provides careful data sanitization and utility for URL and cookies manipulation.
https://doc.nette.org/http-request-response
Other
461 stars 87 forks source link

Bad CookiePath in _nss #238

Open pavelwitassek opened 8 months ago

pavelwitassek commented 8 months ago

Version: 3.3.0

Bug Description

Nette _nss cookie does not respect the DI setting of cookiePath

Steps To Reproduce

Set http.cookiePath to /app

Expected Behavior

Nette _nss cookie has cookiePath from DI configuration of http.cookiePath

Possible Solution

Pass null as $path argument in https://github.com/nette/http/blob/master/src/Http/Helpers.php#L57

dg commented 2 weeks ago

What exactly is the problem with this?