-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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 wrong "text" parsing #5838
fix wrong "text" parsing #5838
Conversation
accept lines containing dots only - I thing check position index should be $position, not $pos
Looks like you might be right, but do you have a sample sieve script that fails to parse correctly? I'd like to add a test for this. |
Nevermind, I fixed this in 8b61d6a. |
Great, you were fast. Just one thing - should not $position be incremented once more in case line ends with "\r\n"? Honestly I have not checked this practically, but length of "\r\n" is 2 symbols, not 1 symbol like in case of simple "\n", so the $position value may be wrong in this case. Please see my original pull request. |
You're right. I couldn't find a sample that breaks without this, but I fixed it anyway. |
accept lines containing dots only - I thing check position index should be $position, not $pos