Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[DependencyInjection] fix DOM element namespace URL access#29992

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
nicolas-grekas merged 1 commit intosymfony:masterfromxabbuh:pr-29968
Jan 26, 2019

Conversation

@xabbuh
Copy link
Member

QA
Branch?master
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed tickets
LicenseMIT
Doc PR


foreach ($alias->childNodesas$child) {
if (!$childinstanceof \DOMElement&&self::NS !==$child->namespaceURI) {
if (!$childinstanceof \DOMElement||self::NS !==$child->namespaceURI) {
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Originally there was nocontinue statement (this was introduced in#29968). The condition before read like this:

if ($childinstanceof \DOMElement &&self::NS ===$child->namespaceURI) {thrownewInvalidArgumentException(sprintf('Invalid child element "%s" defined for alias "%s" in "%s".',$child->localName,$alias->getAttribute('id'),$file));}

This change ensures that we do not access a potentially not existing$namespaceURI property when$child is noDOMElement instance.

@nicolas-grekas
Copy link
Member

Good catch, thanks@xabbuh.

@nicolas-grekasnicolas-grekas merged commit429bddf intosymfony:masterJan 26, 2019
nicolas-grekas added a commit that referenced this pull requestJan 26, 2019
… (xabbuh)This PR was merged into the 4.3-dev branch.Discussion----------[DependencyInjection] fix DOM element namespace URL access| Q             | A| ------------- | ---| Branch?       | master| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets || License       | MIT| Doc PR        |Commits-------429bddf fix DOM element namespace URL access
@xabbuhxabbuh deleted the pr-29968 branchJanuary 26, 2019 21:21
@nicolas-grekasnicolas-grekas modified the milestones:next,4.3Apr 30, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Projects

None yet

Milestone

4.3

Development

Successfully merging this pull request may close these issues.

3 participants

@xabbuh@nicolas-grekas@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp