git://git.onelab.eu
/
plcapi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4aa50ce
)
Merge pull request #98 from rotdrop/bugfix/fix-one-php8-undefined-array-key-error
author
Gaetano Giunta
<giunta.gaetano@gmail.com>
Tue, 15 Feb 2022 17:46:21 +0000
(18:46 +0100)
committer
GitHub
<noreply@github.com>
Tue, 15 Feb 2022 17:46:21 +0000
(18:46 +0100)
Fix one PHP 8 undefined array key "error"
src/Helper/Http.php
patch
|
blob
|
history
diff --git
a/src/Helper/Http.php
b/src/Helper/Http.php
index
d12f456
..
3c65ffa
100644
(file)
--- a/
src/Helper/Http.php
+++ b/
src/Helper/Http.php
@@
-183,7
+183,7
@@
class Http
foreach ($cookie as $pos => $val) {
$val = explode('=', $val, 2);
$tag = trim($val[0]);
- $val =
trim(@$val[1])
;
+ $val =
isset($val[1]) ? trim($val[1]) : ''
;
/// @todo with version 1 cookies, we should strip leading and trailing " chars
if ($pos == 0) {
$cookiename = $tag;