No Code Attached Yet
avatar akbet
akbet
26 Sep 2022

Hi

Steps to reproduce the issue

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

avatar akbet akbet - open - 26 Sep 2022
avatar akbet akbet - change - 26 Sep 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 26 Sep 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 26 Sep 2022
avatar akbet
akbet - comment - 26 Sep 2022

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.

avatar richard67
richard67 - comment - 5 Oct 2022

@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.

avatar Fedik
Fedik - comment - 5 Oct 2022

Use $app->input->getString('letindex') or $app->input->get('letindex', 'string').
Default filter is cmd (command)

avatar Fedik Fedik - change - 5 Oct 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-10-05 14:39:40
Closed_By Fedik
avatar Fedik Fedik - close - 5 Oct 2022

Add a Comment

Login with GitHub to post a comment