Skip to content

B/C issue on $app->redirect($url, $msg)#5247

Closed
cyrez wants to merge 1 commit intojoomla:stagingfrom
cyrez:patch-8
Closed

B/C issue on $app->redirect($url, $msg)#5247
cyrez wants to merge 1 commit intojoomla:stagingfrom
cyrez:patch-8

Conversation

@cyrez
Copy link
Copy Markdown
Contributor

@cyrez cyrez commented Nov 29, 2014

I've found a B/C issue in 3.4.0-alpha related to a change done in /libraries/joomla/application/web.php, line 549 #4292

If a third-party extension uses the deprecated $app->redirect($url, $msg), as $msg ($status) is not numeric, it will return an error 0 You have not supplied a valid HTTP 1.1 status code

I've found a B/C issue in 3.4.0-alpha related to a change done in /libraries/joomla/application/web.php, line 549 joomla#4292

If a third-party extension uses the deprecated $app->redirect($url, $msg), as $msg is not numeric, it will return a error <b>0 You have not supplied a valid HTTP 1.1 status code</b>
@rdeutz
Copy link
Copy Markdown
Contributor

rdeutz commented Nov 29, 2014

I think you are mixing things redirect($url, $msg) is for the controller, app->redirect doesn't has a msg.

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/5247.

@cyrez
Copy link
Copy Markdown
Contributor Author

cyrez commented Nov 29, 2014

I think you are mixing things redirect($url, $msg) is for the controller, app->redirect doesn't has a msg.

Ok... i think i'm wrong... 👎
In fact, i found this code working before 3.4.0-alpha :
$app->redirect($url, $app->enqueueMessage($msg, $type));

But shame on me... it is a very crap way of using redirect...
So, i will close this PR, as you are right, it's not an issue!

Thanks for your comment! ;-)

@cyrez cyrez closed this Nov 29, 2014
cyrez referenced this pull request Dec 2, 2014
Change language string names

Add extra large class to field

Don't check for empty new url if in advanced mode

Remove not null constraint in db

Remove not null constraint in db (2/2)

Add extra check for a 3xx code

Port to all databases

Add missing update files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants