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

Ignore up arrow key #47

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Ignore up arrow key #47

wants to merge 1 commit into from

Conversation

Howe829
Copy link

@Howe829 Howe829 commented Nov 16, 2023

Hi there! I created this pull request because I discovered that it's possible to easily alter the logs of smallchat-server or the chat history of smallchat-client using the up arrow key.
In other words, you can easily hack the smallchat-client simply using up arrow key, before doing this if you change you nick by "/nick you", things will be more interesting! :) Lol, just for kidding.
We can simply solve this problem by ignoring the up arrow key, while we reading from stdin.
image
image

@hamzalodhi2023
Copy link

hamzalodhi2023 commented Nov 16, 2023 via email

@Tinywan
Copy link

Tinywan commented Nov 16, 2023

what?

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.

3 participants