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

[HtmlSanitizer] Fix method names#21216

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

Open
OskarStark wants to merge1 commit into6.4
base:6.4
Choose a base branch
Loading
fromhtml-sanitizer-method-names-6.4

Conversation

OskarStark
Copy link
Contributor

Changed incorrect method names fromallowed* toallow*:

  • allowedLinkSchemes() → allowLinkSchemes()
  • allowedLinkHosts() → allowLinkHosts()
  • allowedMediaSchemes() → allowMediaSchemes()
  • allowedMediaHosts() → allowMediaHosts()

These are the correct method names used in the HtmlSanitizerConfig class.

Fixes#21211

Changed incorrect method names from `allowed*` to `allow*`:- allowedLinkSchemes() → allowLinkSchemes()- allowedLinkHosts() → allowLinkHosts()- allowedMediaSchemes() → allowMediaSchemes()- allowedMediaHosts() → allowMediaHosts()These are the correct method names used in the HtmlSanitizerConfig class.Fixes#21211
@carsonbotcarsonbot added this to the6.4 milestoneJul 18, 2025
@carsonbotcarsonbot changed the titleFix HTML Sanitizer method names in documentation[HtmlSanitizer] Fix HTML Sanitizer method names in documentationJul 18, 2025
@OskarStarkOskarStark changed the title[HtmlSanitizer] Fix HTML Sanitizer method names in documentation[HtmlSanitizer] Fix method namesJul 18, 2025
->forceHttpsUrls(true)

// specifies the allowed URL schemes. If the URL has a different scheme, the
// attribute will be dropped
->allowedLinkSchemes(['http', 'https', 'mailto'])
->allowLinkSchemes(['http', 'https', 'mailto'])
Copy link
Member

Choose a reason for hiding this comment

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

For the DI configuration this is not the correct change, right?

Copy link
Member

Choose a reason for hiding this comment

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

indeed. That's why the CI fails


// specifies the allowed hosts, the attribute will be dropped if the
// URL contains a different host. Subdomains are allowed: e.g. the following
// config would also allow 'www.symfony.com', 'live.symfony.com', etc.
->allowedLinkHosts(['symfony.com'])
->allowLinkHosts(['symfony.com'])
Copy link
Member

Choose a reason for hiding this comment

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

same here

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@stofstofstof left review comments

@xabbuhxabbuhxabbuh requested changes

@javiereguiluzjaviereguiluzAwaiting requested review from javiereguiluz

Assignees
No one assigned
Projects
None yet
Milestone
6.4
Development

Successfully merging this pull request may close these issues.

4 participants
@OskarStark@stof@xabbuh@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp