User tests: Successful: Unsuccessful:
This PR solves the problem of an undefined variable $cspValue copied from the method setCspHeader to compileAutomaticCspHeaderRules.
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Title |
|
Labels |
Added:
?
|
@nielsnuebel Could you check @wilsonge 's comment above and implement the suggested change, i.e. change $row->directive
to $cspHeaderValue->directive
in lines 412 and 418? This should then also solve @zero-24 ' review comment.
P.S.: And provide some testing instructions please.
testing instructions:
Here is var_dump $cspHeaderCollection
:
array(3) {
["default-src"]=>
string(64) " 'unsafe-inline' 'unsafe-inline' 'unsafe-inline' 'unsafe-inline'"
["script-src"]=>
string(0) ""
["style-src"]=>
string(0) ""
}
and var_dump $cspHeaderkey
:
string(11) "default-src"
Thus, one can assume $cspValue->directive
should be $cspHeaderkey
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-03-11 19:46:13 |
Closed_By | ⇒ | Quy | |
Labels |
Added:
?
?
|
@nielsnuebel Please provide test instructions for your PR.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27835.