Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Help content update via X@Help from Webpage #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ZioNeL
Copy link
Contributor

@ZioNeL ZioNeL commented Aug 10, 2024

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
Fix to allow Help content update for commands via X@Help from Webpage
@@ -69,7 +69,7 @@
$zecrc = md5($HTTP_USER_AGENT . $zets . $user_id);
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