Joomla 4 Admin Console
Redirects Component -> Options -> Enable Advanced Mode -> save
Redirects Component -> New
Set Redirect Status Code to string "Its2020AndStillJoomlaDoesntValidateInput"
Click Save.
Validation exception. Redirect Status code should be something in 3xx range.
No validation until the user supplied value hits the database layer and then a mysql error is displayed to the user:
Save failed with the following error: Incorrect integer value: 'Its2020AndStillJoomlaDoesntValidateInput' for column 'header' at row 1
Also note that saving a redirect status code of 999
is validated as ok and the link saved :-(
Labels |
Added:
?
|
and of course 0 is not a valid HTTP Status Code ;-)
and of course 0 is not a valid HTTP Status Code ;-) ... even though its sometimes used as an error code :)
This should not be hard to fix at all... but why say Its2020AndStillJoomlaDoesntValidateInput that is just not true.
@brianteeman is right that this is a partial fix, since as you may know Joomla can have its own special validation rule for any field, so there seems to be at least one simple option here... lol
I see the code was worked on about three years ago... but I am sure more can be done. Tell me @PhilETaylor are you willing to push any code towards this should the Release Leads agree?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-10-09 07:22:09 |
Closed_By | ⇒ | SharkyKZ |
I know how to partially fix this
But that just results in a 0 being saved when you try to save a string