Skip to content

Releases: nette/http

Released version 3.1.5

17 Sep 14:15
@dg dg
Compare
Choose a tag to compare
  • SessionExtension: added values 'always' & 'never' for option 'autoStart'
  • Session: option 'autoStart' controls auto start on reading or writing (BC break)
  • Session: added autoStart() to prevent session files from being created when the session id is spoofed
  • SessionSection: remove() is not writing operation
  • SessionSection: added methods set(), get(), remove()
  • Session: refactoring
  • Session: cleaning is done in __destruct
  • Session: don't send session cookie twice
  • Session: don't regenerate ID in readAndClose mode
  • Session: added events $onStart & $onBeforeWrite
  • Session: fixed condition in clean()

Released version 3.0.7

17 Sep 14:14
@dg dg
Compare
Choose a tag to compare
  • SessionExtension: default is autoStart = false to avoid creating new session files if the session_id is spoofed (BC break)
  • SessionSection: added methods set(), get(), remove()
  • Session: don't send session cookie twice
  • Session: don't regenerate ID in readAndClose mode
  • Session: fixed condition in clean()

Released version 3.1.2

25 Aug 15:50
@dg dg
Compare
Choose a tag to compare
  • support for PHP 8.1
  • HttpExtension: added option 'disableNetteCookie' #205
  • Session: fixed option 'readAndClose' #206
  • Session: fixed condition in destroy() (#204)
  • RequestFactory: urlFilters replaces only double // to single
  • RequestFactory: strips trailing . from host

Released version 3.0.6

25 Aug 15:49
@dg dg
Compare
Choose a tag to compare
  • HttpExtension: added option 'disableNetteCookie' #205
  • Session: fixed option 'readAndClose' #206
  • Session: fixed condition in destroy() (#204)
  • RequestFactory: urlFilters replaces only double // to single
  • RequestFactory: strips trailing . from host
  • Helpers: nette-samesite is resent at each request
  • IResponse: added constants SAME_SITE_*
  • ScriptUrl: Fix class extendability (#187) (#188)

Released version 3.1.1

27 Jan 12:42
@dg dg
Compare
Choose a tag to compare
  • added Response::sendAsFile()
  • SessionSection: __get() returns reference (#191)(#192)
  • Url: IDN domain automatically convert to UTF-8. (#190)

For the details you can have a look at the diff.

Released version 3.1.0

31 Dec 19:11
@dg dg
Compare
Choose a tag to compare
  • requires PHP 7.2
  • Response::setCookie() default $sameSite is 'Lax' (BC break)
  • Response::setCookie() prevents an inappropriate combination of path and domain
  • Response: deprecated $cookieHttpOnly
  • Request::getFile() accepts array of keys and returns FileUpload|null (BC break)
  • FileUpload::getImageSize() returns only [x, y] values (BC break)
  • UrlImmutable: added withQueryParameter()
  • Url: silently deprecated getBasePath(), getBaseUrl(), getRelativeUrl()
  • UserStorage is deprecated by Nette\Bridges\SecurityHttp\SessionStorage

Session & Cookies

  • Session: default sameSite is 'Lax' (BC break)
  • SessionExtension: option session.cookieSecure is deprecated, http.cookieSecure is used (BC break)
  • SessionExtension: checks that cookieSamesite is Lax|Strict|None (BC break)
  • SessionSection: can read data when session is closed
  • Session: deprecated getCookieParameters() triggers E_USER_DEPRECATED
  • HttpExtension: added options cookiePath & cookieDomain
  • HttpExtension: cookieSecure is by default 'auto' (BC break)
  • cookie nette-samesite renamed to _nss

Released version 2.4.12

06 Nov 00:18
@dg dg
Compare
Choose a tag to compare

compatible with PHP 8.0

Released version 3.0.5

02 Nov 16:31
@dg dg
Compare
Choose a tag to compare
  • compatible with PHP 8.0
  • FileUpload: added getImageFileExtension()
  • FileUpload: added getUntrustedName() as alias for getName()
  • FileUpload::getSanitizedName: returns correct file extension for images
  • FileUpload: fixed TypeError if getimagesize() returns false (#184)
  • FileUpload::getSanitizedName: Remove redundant minus before dot. (#179)
  • FileUpload::getSanitizedName: returns 'unknown' instead of empty string
  • Helpers::initCookie() sends cookie nette-samesite only if doesn't exist

For the details you can have a look at the diff.

Released version 3.0.4

31 Mar 13:44
@dg dg
Compare
Choose a tag to compare
  • Url::parseQuery() fixed parsing of ; #177
  • RequestFactory: $xForwardedForWithoutProxies can be empty #175
  • SessionPanel: uses capturing
  • HttpExtension, SessionExtension: uses $initialization (requires nette/di 3.0.3)
  • uses nette/utils 3.1

For the details you can have a look at the diff.

Released version 3.0.3

31 Oct 15:20
@dg dg
Compare
Choose a tag to compare
  • HttpExtension: added support for 'http:' in CSP
  • Session: prevents warning Cannot change session cookie parameters when session is active
  • Url::parseQuery() accepts separator ;
  • IResponse: added REASON_PHRASES
  • HttpExtension: 'proxy' can be string

For the details you can have a look at the diff.