No Code Attached Yet
avatar PhilETaylor
PhilETaylor
22 Aug 2021

Steps to reproduce the issue

Attempt to create a new contact in Joomla admin when providing the website address as "£$" (not just one or the other, but this exact string)

Expected result

URL Fails validation with normal red banner error message

Actual result

Unhelpful non-user friendly error message.

Punnycode Helper exception thrown is not handled

Screenshot 2021-08-22 at 17 25 59

Additional comments

Note that when using the same £$ in other URL fields in Joomla Admin - such as in the banners component, this error is not shown.

avatar PhilETaylor PhilETaylor - open - 22 Aug 2021
avatar joomla-cms-bot joomla-cms-bot - change - 22 Aug 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Aug 2021
avatar dgrammatiko
dgrammatiko - comment - 22 Aug 2021

Punnycode Helper exception thrown is not handled

Client-side or server-side Punnycode Helper? I mean were the form expected to punycode encode the input's string or this is a php side problem? Or both?

avatar PhilETaylor
PhilETaylor - comment - 22 Aug 2021

This uncaught error is PHP side. Although to get to PHP side it already passed any (is there any!?) JS validation for urls.

avatar dgrammatiko
dgrammatiko - comment - 22 Aug 2021

is there any!?) JS validation for urls

There's some unusable validation script but it only uses Punycode for emails:

this.setHandler('email', (value) => {
const newValue = punycode.toASCII(value);
const regex = /^[a-zA-Z0-9.!#$%&’*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;
return regex.test(newValue);
});

Also most of the time it doesn't do anything more than informing the user of required inputs without value...

avatar PhilETaylor
PhilETaylor - comment - 22 Aug 2021
<input type="url" inputmode="url" name="jform[webpage]" class="form-control valid form-control-success" id="jform_webpage" value="" size="30" aria-invalid="false">

Strange that HTML type url allows the entry of and form submission of a value of £$

In this test is doesnt: https://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_input_type_url

avatar PhilETaylor PhilETaylor - change - 7 Mar 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-03-07 18:36:39
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 7 Mar 2022
avatar ch2856
ch2856 - comment - 9 May 2022

Why the issue is closed if the issue is still here? can't create new user " Prohibited input U+0000202C"

avatar chmst
chmst - comment - 9 May 2022

"Prohibited input" is not a Joomla message, do you have an extension?

avatar brianteeman
brianteeman - comment - 9 May 2022

The issue is closed only because the original submitter closed it.

It is a valid issue and can be replicated as reported.

@chmst the error message is coming directly from the library as shown in the original screenshot

Add a Comment

Login with GitHub to post a comment