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') {
|
if ($this->getRequest()->getActionName() != 'editresource') {
|
||||||
$callbackValidator = new Zend_Validate_Callback(function ($value) {
|
$callbackValidator = new Zend_Validate_Callback(function ($value) {
|
||||||
if (
|
if (substr(ltrim($value), 0, 7) === 'file://'
|
||||||
substr(ltrim($value), 0, 7) === 'file://'
|
|
||||||
|| openssl_pkey_get_private($value) === false
|
|| openssl_pkey_get_private($value) === false
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -49,8 +49,7 @@ class StaticController
|
|||||||
$filePath = $assetRoot . DIRECTORY_SEPARATOR . $assetPath;
|
$filePath = $assetRoot . DIRECTORY_SEPARATOR . $assetPath;
|
||||||
$dirPath = realpath(dirname($filePath)); // dirname, because the file may be a link
|
$dirPath = realpath(dirname($filePath)); // dirname, because the file may be a link
|
||||||
|
|
||||||
if (
|
if ($dirPath === false
|
||||||
$dirPath === false
|
|
||||||
|| substr($dirPath, 0, strlen($assetRoot)) !== $assetRoot
|
|| substr($dirPath, 0, strlen($assetRoot)) !== $assetRoot
|
||||||
|| ! is_file($filePath)
|
|| ! is_file($filePath)
|
||||||
) {
|
) {
|
||||||
|
@ -1194,8 +1194,7 @@ abstract class IdoQuery extends DbQuery
|
|||||||
$this->customVars[strtolower($customvar)] = $alias;
|
$this->customVars[strtolower($customvar)] = $alias;
|
||||||
|
|
||||||
if ($type === 'host') {
|
if ($type === 'host') {
|
||||||
if (
|
if ($this instanceof ServicecommentQuery
|
||||||
$this instanceof ServicecommentQuery
|
|
||||||
|| $this instanceof ServicedowntimeQuery
|
|| $this instanceof ServicedowntimeQuery
|
||||||
|| $this instanceof ServicecommenthistoryQuery
|
|| $this instanceof ServicecommenthistoryQuery
|
||||||
|| $this instanceof ServicedowntimestarthistoryQuery
|
|| $this instanceof ServicedowntimestarthistoryQuery
|
||||||
|
Loading…
x
Reference in New Issue
Block a user