mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
Fix style issues in recent security fixes
This commit is contained in:
parent
88294549ba
commit
0d032989e6
@ -52,8 +52,7 @@ class SshResourceForm extends Form
|
||||
|
||||
if ($this->getRequest()->getActionName() != 'editresource') {
|
||||
$callbackValidator = new Zend_Validate_Callback(function ($value) {
|
||||
if (
|
||||
substr(ltrim($value), 0, 7) === 'file://'
|
||||
if (substr(ltrim($value), 0, 7) === 'file://'
|
||||
|| openssl_pkey_get_private($value) === false
|
||||
) {
|
||||
return false;
|
||||
|
@ -49,8 +49,7 @@ class StaticController
|
||||
$filePath = $assetRoot . DIRECTORY_SEPARATOR . $assetPath;
|
||||
$dirPath = realpath(dirname($filePath)); // dirname, because the file may be a link
|
||||
|
||||
if (
|
||||
$dirPath === false
|
||||
if ($dirPath === false
|
||||
|| substr($dirPath, 0, strlen($assetRoot)) !== $assetRoot
|
||||
|| ! is_file($filePath)
|
||||
) {
|
||||
|
@ -1194,8 +1194,7 @@ abstract class IdoQuery extends DbQuery
|
||||
$this->customVars[strtolower($customvar)] = $alias;
|
||||
|
||||
if ($type === 'host') {
|
||||
if (
|
||||
$this instanceof ServicecommentQuery
|
||||
if ($this instanceof ServicecommentQuery
|
||||
|| $this instanceof ServicedowntimeQuery
|
||||
|| $this instanceof ServicecommenthistoryQuery
|
||||
|| $this instanceof ServicedowntimestarthistoryQuery
|
||||
|
Loading…
x
Reference in New Issue
Block a user