-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Fixes bin2hex() in LDAP #7479
Fixes bin2hex() in LDAP #7479
Conversation
Untangles the two if-else clauses into a more readable format. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
The proof on 3v4l: https://3v4l.org/OdXp2 |
if($this->resemblesDN($key)) { | ||
$selection[$i][$key] = $this->helper->sanitizeDN($item[$key]); | ||
} else if($key === 'objectguid' || $key === 'guid') { | ||
$selection[$i][$key] = [$this->convertObjectGUID2Str($item[$key][0])]; |
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.
I'm assuming just taking the first element is fine?
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.
cc @blizzz
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.
yes, because it is an identifier. if i get my hands on an AD i wanna doublecheck the format, however, and ideally add tests for it
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.
Ok lets do this. @blizzz please do take a look at my comment since this part of ldap is dark magic to me.
As I only took the patch of @blizzz #7400 (comment) I also give this a 👍 |
Untangles the two if-else clauses into a more readable format.
Fixes #7400