dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "mediawiki.util: Merge 'jquery.accessKeyLabel' into this module"
[lhc/web/wiklou.git]
/
includes
/
libs
/
Cookie.php
diff --git
a/includes/libs/Cookie.php
b/includes/libs/Cookie.php
index
c0ab0a0
..
b7636b1
100644
(file)
--- a/
includes/libs/Cookie.php
+++ b/
includes/libs/Cookie.php
@@
-58,11
+58,7
@@
class Cookie {
$this->expires = strtotime( $attr['expires'] );
}
$this->expires = strtotime( $attr['expires'] );
}
- if ( isset( $attr['path'] ) ) {
- $this->path = $attr['path'];
- } else {
- $this->path = '/';
- }
+ $this->path = $attr['path'] ?? '/';
if ( isset( $attr['domain'] ) ) {
if ( self::validateCookieDomain( $attr['domain'] ) ) {
if ( isset( $attr['domain'] ) ) {
if ( self::validateCookieDomain( $attr['domain'] ) ) {