mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Revert "Form: Process request parameter _frameUpload"
This reverts commit fc481e527bc021144205e9fea88397bdf5ce60bc.
This commit is contained in:
parent
e4450e7368
commit
a38d5ccac6
@ -1,10 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<?php if (isset($this->layout()->redirectUrl)): ?>
|
|
||||||
<meta name="redirectUrl" content="<?= $this->layout()->redirectUrl; ?>">
|
|
||||||
<?php endif ?>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<?= $this->render('inline.phtml'); ?>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -1168,9 +1168,6 @@ class Form extends Zend_Form
|
|||||||
|| $this->getUidDisabled()
|
|| $this->getUidDisabled()
|
||||||
|| $this->wasSent($formData)
|
|| $this->wasSent($formData)
|
||||||
) {
|
) {
|
||||||
if (($frameUpload = (bool) $request->getUrl()->shift('_frameUpload', false))) {
|
|
||||||
$this->getView()->layout()->setLayout('wrapped');
|
|
||||||
}
|
|
||||||
$this->populate($formData); // Necessary to get isSubmitted() to work
|
$this->populate($formData); // Necessary to get isSubmitted() to work
|
||||||
if (! $this->getSubmitLabel() || $this->isSubmitted()) {
|
if (! $this->getSubmitLabel() || $this->isSubmitted()) {
|
||||||
if ($this->isValid($formData)
|
if ($this->isValid($formData)
|
||||||
@ -1192,10 +1189,8 @@ class Form extends Zend_Form
|
|||||||
$this->getResponse()->json()
|
$this->getResponse()->json()
|
||||||
->setSuccessData($message !== null ? array('message' => $message) : null)
|
->setSuccessData($message !== null ? array('message' => $message) : null)
|
||||||
->sendResponse();
|
->sendResponse();
|
||||||
} elseif (! $frameUpload) {
|
|
||||||
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
|
||||||
} else {
|
} else {
|
||||||
$this->getView()->layout()->redirectUrl = $this->getRedirectUrl()->getAbsoluteUrl();
|
$this->getResponse()->redirectAndExit($this->getRedirectUrl());
|
||||||
}
|
}
|
||||||
// TODO: Still bad. An api target must not behave as one if it's not an api request
|
// TODO: Still bad. An api target must not behave as one if it's not an api request
|
||||||
} elseif ($this->getIsApiTarget() || $this->getRequest()->isApiRequest()) {
|
} elseif ($this->getIsApiTarget() || $this->getRequest()->isApiRequest()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user