8000 [SecurityBundle] Drop spurious character added to regex by DavidPrevot · Pull Request #26420 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[SecurityBundle] Drop spurious character added to regex #26420

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

Closed
wants to merge 1 commit into from

Conversation

DavidPrevot
Copy link
Contributor
@DavidPrevot DavidPrevot commented Mar 6, 2018

The character was introduced in 5f9471e, and breaks the testsuite when run with native php 7.2.

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? no
License MIT

The error was introduced in 5f9471e, and breaks the testsuite.
@DavidPrevot
Copy link
Contributor Author

If the testsuite gets broken with the current travis environment, I guess it’s not worth it.

@@ -86,7 +86,7 @@ public function testEncodePasswordArgon2i()
$this->assertContains('Password encoding succeeded', $output);

$encoder = new Argon2iPasswordEncoder();
preg_match('# Encoded password\s+(\$argon2id\$[\w\d,=\$+\/]+={0,2})\s+#', $output, $matches);
preg_match('# Encoded password\s+(\$argon2i\$[\w\d,=\$+\/]+={0,2})\s+#', $output, $matches);
Copy link
Member

Choose a reason for hiding this comment

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

Wouldn't # Encoded password\s+(\$argon2id?\$[\w\d,=\$+\/]+={0,2})\s+# work then?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the advice, it should work indeed.

Copy link
Member

Choose a reason for hiding this comment

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

Thank you for fixing it. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0