-
-
Notifications
You must be signed in to change notification settings - Fork 379
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
Fix /" #1303
Fix /" #1303
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested in game and confirmed that the exploit is no longer possible. Functionally looks good. Just minor style changes then I'm happy.
return false; | ||
int index = -1; | ||
for (int i = 0; i < cmdText.Length; i++) | ||
if (IsWhiteSpace(cmdText[i])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whether or not this is syntactically correct or not, stylistically there should be some brackets around this for loop.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me clarify that last comment: I tested and made sure that command parsing wasn't changed too. |
Let me fix something quickly |
Once this is accepted, I will push commits and make another PR fixing #1206. |
Fixes #1301.