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

[Ldap] Escape carriage returns in LDAP DNs.#16842

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

Closed
ChadSikorra wants to merge3 commits intosymfony:2.8fromChadSikorra:ldap-escape
Closed

[Ldap] Escape carriage returns in LDAP DNs.#16842

ChadSikorra wants to merge3 commits intosymfony:2.8fromChadSikorra:ldap-escape

Conversation

@ChadSikorra
Copy link
Contributor

Depends upon this commit in polyfill:symfony/polyfill#14

QA
Bug fix?yes
New feature?no
BC breaks?no
Deprecations?no
Tests pass?yes
Fixed ticketsn/a
LicenseMIT
Doc PRn/a

Carriage returns are supposed to be escaped in a LDAP DN. Leading and trailing spaces should be encoded as well. The spaces were taken care of in the polyfill implementation ofldap_escape, but the actual PHP function doesn't do the same. So I moved that logic within the component function and removed it from the polyfill function.

@ChadSikorraChadSikorra changed the titleEscape carriage returns in LDAP DNs.[Ldap] Escape carriage returns in LDAP DNs.Dec 7, 2015
Copy link
Contributor

Choose a reason for hiding this comment

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

You should skip the test if the extension is not enabled, which is the case in one of the two Appveyor builds (one is run with the extension, the other without).

@ChadSikorra
Copy link
ContributorAuthor

I adjusted the test to require the LDAP extension. Seems to have appeased Appveyor anyway.

@csarrazi
Copy link
Contributor

LGTM 👍

@fabpot
Copy link
Member

Thank you@ChadSikorra.

fabpot added a commit that referenced this pull requestDec 18, 2015
This PR was squashed before being merged into the 2.8 branch (closes#16842).Discussion----------[Ldap] Escape carriage returns in LDAP DNs.Depends upon this commit in polyfill:symfony/polyfill#14| Q             | A| ------------- | ---| Bug fix?      | yes| New feature?  | no| BC breaks?    | no| Deprecations? | no| Tests pass?   | yes| Fixed tickets | n/a| License       | MIT| Doc PR        | n/aCarriage returns are supposed to be escaped in a LDAP DN. Leading and trailing spaces should be encoded as well. The spaces were taken care of in the polyfill implementation of `ldap_escape`, but the actual PHP function doesn't do the same. So I moved that logic within the component function and removed it from the polyfill function.Commits-------2243db4 [Ldap] Escape carriage returns in LDAP DNs.
@fabpotfabpot closed thisDec 18, 2015
This was referencedDec 26, 2015
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

No milestone

Development

Successfully merging this pull request may close these issues.

4 participants

@ChadSikorra@csarrazi@fabpot@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp