Skip to content
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

[BUGFIX] parsing of urls from DB #9

Merged
merged 1 commit into from
Nov 19, 2019
Merged

[BUGFIX] parsing of urls from DB #9

merged 1 commit into from
Nov 19, 2019

Conversation

achimfritz
Copy link
Contributor

No description provided.

@achimfritz achimfritz requested a review from bmack November 18, 2019 12:55
@@ -174,8 +174,8 @@ protected function groupUrlsByAllowedZones(array $urls): array
$availableZones = $this->getZones();
foreach ($availableZones as $domain => $zoneId) {
$groupedUrls[$zoneId] = array_filter($urls, function($url) use ($domain) {
$urlParts = [];
parse_str($url, $urlParts);
$url = unserialize($url);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

$urls are saved serialized in Database, can we save the as string? (because $url is "untrusted user input")

Copy link
Member

Choose a reason for hiding this comment

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

We should implement "TransientBackendInterface" instead.

@@ -174,8 +174,8 @@ protected function groupUrlsByAllowedZones(array $urls): array
$availableZones = $this->getZones();
foreach ($availableZones as $domain => $zoneId) {
$groupedUrls[$zoneId] = array_filter($urls, function($url) use ($domain) {
$urlParts = [];
parse_str($url, $urlParts);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

hm, is this a typo?

@achimfritz achimfritz changed the title [WIP] parsing of urls from DB [BUGFIX] parsing of urls from DB Nov 19, 2019
@bmack bmack merged commit b2f0d32 into master Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants