-
Notifications
You must be signed in to change notification settings - Fork 79
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
Fixed to validate attributes before inserting into XML. #339
Conversation
Checked commit hsong-rh@5aa3f3d with ruby 2.3.3, rubocop 0.52.1, haml-lint 0.20.0, and yamllint 1.10.0 |
@hsong-rh this looks good as far as it goes. However my question would be - are there other places in this class where we are assuming valid character encoding that might also be a problem? ".to_s" is used in several places here - what would happen if any of those objects were also in a non-valid encoding? |
@jerryk55, we already have a fix for elements adding, here we do the same thing for attributes. These should cover the most cases. |
Fixed to validate attributes before inserting into XML. (cherry picked from commit 21bbb2d) https://bugzilla.redhat.com/show_bug.cgi?id=1554343
Gaprindashvili backport details:
|
Fixed to validate attributes before inserting into XML. (cherry picked from commit 21bbb2d) https://bugzilla.redhat.com/show_bug.cgi?id=1554344
Fine backport details:
|
Filter out the unrecognized characters in attributes before inserting into XML.
https://bugzilla.redhat.com/show_bug.cgi?id=1533843