Skip to content

Conversation

@ZioNeL
Copy link
Contributor

@ZioNeL ZioNeL commented Aug 10, 2024

Fix to allow Help content update for commands via X@Help from Webpage

ZioNeL added 3 commits August 10, 2024 22:47
Fix to allow Help content update for commands via X@Help from Webpage
Fix to allow Help content update for commands via X@Help from Webpage
Fix to allow Help content update for commands via X@Help from Webpage
echo "<input type=hidden name=ts value=$zets>\n";
echo "<input type=hidden name=crc value=$zecrc>\n";
echo "<input type=hidden name=langid value=$langid>\n";
echo "<input type=hidden name=lang_id value=$lang_id>\n";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A much smaller fix would be changing $langid to $lang_id on this line; then no changes are necessary for any other files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to change on all 3 files.
Some task are related with these 3 pages, and some actions (like add, edit) will not work.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You only need to change all files because you rename name=langid to name=lang_id in the form. If you don't do that, all you would have to do is change:

echo "<input type=hidden name=langid value=$langid>\n";

to

echo "<input type=hidden name=langid value=$lang_id>\n";

But I think the bigger issue is here that we use $langid as input instead of $_POST['langid']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants