J4 Issue ?
avatar PhilETaylor
PhilETaylor
6 Oct 2020

Steps to reproduce the issue

Edit a Mail Template in Joomla 4 admin

Change the language code manually in the URL

Eg

http://example.com/administrator/index.php?option=com_mails&view=template&layout=edit&template_id=plg_user_joomla.mail&language=en-GBfrerferferferferf

Click save

Expected result

Input validation on the language code before it gets anywhere near a mysql query

Actual result

Save failed with the following error: Data too long for column 'language' at row 1

Screenshot 2020-10-07 at 00 23 56

Additional Information

If you use &language=A the mail template saves - this also should be stopped, as A is not a valid input for language code! And this is persisted to the database!

Screenshot 2020-10-07 at 00 25 36

avatar PhilETaylor PhilETaylor - open - 6 Oct 2020
avatar joomla-cms-bot joomla-cms-bot - change - 6 Oct 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 6 Oct 2020
avatar PhilETaylor PhilETaylor - change - 6 Oct 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 6 Oct 2020
avatar PhilETaylor PhilETaylor - change - 6 Oct 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 6 Oct 2020
avatar PhilETaylor PhilETaylor - change - 7 Oct 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 7 Oct 2020
avatar brianteeman
brianteeman - comment - 7 Oct 2020

data validation issues again

avatar jwaisner jwaisner - change - 2 Nov 2020
Labels Added: J4 Issue
avatar jwaisner jwaisner - labeled - 2 Nov 2020
avatar wilsonge wilsonge - change - 2 Jan 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-01-02 06:23:25
Closed_By wilsonge
avatar wilsonge wilsonge - close - 2 Jan 2021
avatar wilsonge
wilsonge - comment - 2 Jan 2021

PR #31835

Add a Comment

Login with GitHub to post a comment