Skip to content

fix HttpCookie: correct tailmatch and secure boolean parsing logic#20925

Open
cuiweixie wants to merge 1 commit into
cocos2d:v4from
cuiweixie:bugfix/true
Open

fix HttpCookie: correct tailmatch and secure boolean parsing logic#20925
cuiweixie wants to merge 1 commit into
cocos2d:v4from
cuiweixie:bugfix/true

Conversation

@cuiweixie
Copy link
Copy Markdown

The original ternary expression strcmp("TRUE", x)?true:false was inverted - strcmp returns 0 when strings match (falsy in C++), causing TRUE to parse as false. Changed to strcmp("TRUE", x) == 0 for correct boolean conversion.

The original ternary expression strcmp("TRUE", x)?true:false was inverted -
strcmp returns 0 when strings match (falsy in C++), causing TRUE to parse as false.
Changed to strcmp("TRUE", x) == 0 for correct boolean conversion.
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.

1 participant