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)
URL Fails validation with normal red banner error message
Unhelpful non-user friendly error message.
Punnycode Helper exception thrown is not handled
Note that when using the same £$
in other URL fields in Joomla Admin - such as in the banners component, this error is not shown.
Labels |
Added:
No Code Attached Yet
|
This uncaught error is PHP side. Although to get to PHP side it already passed any (is there any!?) JS validation for urls.
is there any!?) JS validation for urls
There's some unusable validation script but it only uses Punycode for emails:
joomla-cms/build/media_source/system/js/fields/validate.es6.js
Lines 33 to 37 in 173ac7d
Also most of the time it doesn't do anything more than informing the user of required inputs without value...
<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
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-03-07 18:36:39 |
Closed_By | ⇒ | PhilETaylor |
Why the issue is closed if the issue is still here? can't create new user " Prohibited input U+0000202C"
"Prohibited input" is not a Joomla message, do you have an extension?
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?