Skip to content

Commit

Permalink
migrate: Fix false positives once more
Browse files Browse the repository at this point in the history
Hope for the best that this is the last fix -.-
  • Loading branch information
nilmerg committed Jul 5, 2023
1 parent 02fe047 commit 436bac3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions application/controllers/MigrateController.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,13 @@ public function searchUrlAction()
foreach ($urls as $urlString) {
$url = Url::fromPath($urlString);
$filter = QueryString::parse($url->getQueryString());
$filter = $traverseFilter($filter) ?? $filter;
$result[] = rawurldecode($url->setQueryString(QueryString::render($filter))->getAbsoluteUrl());

$newFilter = $traverseFilter($filter);
if ($newFilter !== null) {
$result[] = rawurldecode($url->setQueryString(QueryString::render($newFilter))->getAbsoluteUrl());
} else {
$result[] = $url->getAbsoluteUrl();
}
}

$response = $this->getResponse()->json();
Expand Down

0 comments on commit 436bac3

Please sign in to comment.