-
-
Notifications
You must be signed in to change notification settings - Fork 108
Replace sscanf by equivalent native PHP functions because sscanf can be disabled for security reasons. #286
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
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.
Thank you for fixing this issue!
Tests seem to fail https://travis-ci.org/phpmyadmin/sql-parser/jobs/644946170#L323 |
Codecov Report
@@ Coverage Diff @@
## QA #286 +/- ##
==========================================
- Coverage 100% 99.75% -0.25%
- Complexity 1864 1865 +1
==========================================
Files 63 63
Lines 4527 4525 -2
==========================================
- Hits 4527 4514 -13
- Misses 0 11 +11 |
Can you run |
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.
Done.
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.
LGTM, thank you!
I will merge your work near the 8th
7645aeb
to
4b94449
Compare
…s because sscanf can be disabled for security reasons. Fixes: phpmyadmin#270
4b94449
to
8ea41bc
Compare
…e sscanf can be disabled for security reasons. Pull-request: #286 Fixes: #270 Signed-off-by: William Desportes <[email protected]>
Pull-request: #286 Signed-off-by: William Desportes <[email protected]>
Thank you @niconoe- that will reduce errors being reported to our server 🎉 |
As sscanf can be disabled for security reasons, as mentioned in #270 , and also explained here: https://www.php.net/manual/en/function.sscanf.php#49713, I changed the usages by other native PHP functions, so performance should not be impacted.
Fixes: #270