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

Adjust binary escaping #252

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

Adjust binary escaping #252

wants to merge 25 commits into from

Conversation

vistart
Copy link
Contributor

@vistart vistart commented Jul 25, 2022

Q A
Is bugfix? ✔️
New feature?
Breaks BC?
Fixed issues #251

@samdark samdark added this to the 2.0.18 milestone Jul 25, 2022
@samdark samdark requested review from a team and cebe July 25, 2022 16:17
@samdark samdark modified the milestones: 2.0.18, 2.0.19 Sep 4, 2022
@samdark
Copy link
Member

samdark commented Feb 4, 2023

Would you please add a line for CHANGELOG?

@samdark samdark changed the title Try to solve yiisoft#251 Adjust binary escaping Feb 4, 2023
@samdark
Copy link
Member

samdark commented Feb 4, 2023

@rob006, @cebe, @bizley your review is very welcome here.

@@ -237,7 +237,7 @@ private function quoteValue($str)
return $str;
}

return "'" . addcslashes($str, "\000\n\r\\\032\047") . "'";
return "'" . addcslashes($str, "\000\n\r\\\047") . "'";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

\032 octal is a substitute character. It's not a simple one so this needs to be checked if there's any threat in not escaping it.

@samdark samdark requested a review from bizley February 5, 2023 09:19
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.

None yet

2 participants