No Code Attached Yet Information Required
avatar hrzolfaghar
hrzolfaghar
13 Feb 2022

set variable in URL: site.com/index.php?my_variable=1

But to our surprise, we see that it is saved as a posted variable & you can retrieve that variable as posted data!

JFactory::getApplication()->input->post->get('my_variable');

avatar hrzolfaghar hrzolfaghar - open - 13 Feb 2022
avatar hrzolfaghar hrzolfaghar - change - 13 Feb 2022
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Feb 2022
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Feb 2022
avatar Quy
Quy - comment - 15 Feb 2022

Sorry I don't understand the issue. It is the expected behavior. How does this affect Joomla core?

avatar Quy Quy - labeled - 15 Feb 2022
avatar Fedik
Fedik - comment - 17 Feb 2022

I cannot confirm, while accessing URL query from post I get a null while POST request,
eg $input->post->get('my_variable')

avatar hrzolfaghar
hrzolfaghar - comment - 17 Feb 2022

I cannot confirm, while accessing URL query from post I get a null while POST request, eg $input->post->get('my_variable')

did you test on which version of joomla?

avatar Fedik
Fedik - comment - 17 Feb 2022

4

avatar Fedik Fedik - change - 20 Feb 2022
Status New Closed
Closed_Date 0000-00-00 00:00:00 2022-02-20 09:17:28
Closed_By Fedik
Labels Added: Information Required
avatar Fedik Fedik - close - 20 Feb 2022
avatar Fedik
Fedik - comment - 20 Feb 2022

I closing it, I cannot reproduce issue. Works good for j3 and 4.

Add a Comment

Login with GitHub to post a comment