Skip to content

Commit

Permalink
rudimentary array key parameter support
Browse files Browse the repository at this point in the history
  • Loading branch information
frostschutz committed Aug 9, 2020
1 parent 2205c88 commit e450782
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion inc/plugins/google_seo/redirect.php
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,13 @@ function google_seo_redirect_hook()

foreach($query as $k=>$v)
{
$querystr[] = urlencode($k)."=".urlencode($v);
if(is_array($v)) {
foreach($v as $arrk=>$arrv) {
$querystr[] = urlencode($k)."[".urlencode($arrk)."]=".urlencode($arrv);
}
} else {
$querystr[] = urlencode($k)."=".urlencode($v);
}
}

$location_target = google_seo_encode($location_target);
Expand Down

0 comments on commit e450782

Please sign in to comment.