Hi
in router I have: from user input:
$vars['letindex'] = $segments[2];
if $segments[2] === "w" or "1" or "R" ..
In controller
echo JFactory::getApplication()->input->get('letindex', ""); // return "w" or "1" or "R" .. all work good
BUT if $segments[2] === "п" or "Д" or "Г" - some not latin letter
In controller
echo JFactory::getApplication()->input->get('letindex', ""); // return empty
also
echo JFactory::getApplication()->input->get('letindex', "ппп"); // return empty
I use last joomla 4.2.2. PHP 8.1.9
Regards
Andrew
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
@akbet URL can contain only ASCII characters, see the specification here: http://www.faqs.org/rfcs/rfc1738.html . Other characters need to be percent encoded. Where does the input "letindex" come from? Is that a text field with URL filter? In this case removing non ASDCII characters is the expected behaviour, I would say.
Use $app->input->getString('letindex')
or $app->input->get('letindex', 'string')
.
Default filter is cmd
(command)
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-10-05 14:39:40 |
Closed_By | ⇒ | Fedik |
If I use filter RAW - all work good
Regards
Andrew
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38836.