Issue Bug Closed

#55645Add wizard redirects to original form if PID larger zero

Alexander Stehlik 02/04/14, 09:37 updated 03/06/14, 23:55

Description

The add_wizard.php script will always redirect the user back to the original form if a PID larger than zero is used.

This bug was introduced with https://review.typo3.org/25843/ because an invalid condition is used:

if ($this->pid > 0) {
    HttpUtility::redirect(GeneralUtility::sanitizeLocalUrl($this->P['returnUrl']));
}

should be

if ($this->pid !== '') {
    HttpUtility::redirect(GeneralUtility::sanitizeLocalUrl($this->P['returnUrl']));
}

which it was before.

Reviews 1