Skip to content

Commit c2b954c

Browse files
Merge pull request #645 from matomo-org/port-as685
Port the escaped Matomo domain to 6.x, #AS-685
2 parents 4e95d8f + ed8c26f commit c2b954c

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎Importer.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ private function importCustomVariableSlots()
288288
$command = "php " . PIWIK_INCLUDE_PATH . '/console';
289289
$domain = Config::getInstance()->getConfigHostnameIfSet();
290290
if (!empty($domain)) {
291-
$command .= ' --matomo-domain=' . $domain;
291+
$command .= ' --matomo-domain=' . escapeshellarg($domain);
292292
}
293293
$command .= ' customvariables:set-max-custom-variables ' . $numCustomVarSlots;
294294
passthru($command);

‎ImporterGA4.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ private function importCustomVariableSlots()
340340
$command = "php " . PIWIK_INCLUDE_PATH . '/console';
341341
$domain = Config::getInstance()->getConfigHostnameIfSet();
342342
if (!empty($domain)) {
343-
$command .= ' --matomo-domain=' . $domain;
343+
$command .= ' --matomo-domain=' . escapeshellarg($domain);
344344
}
345345
$command .= ' customvariables:set-max-custom-variables ' . $numCustomVarSlots;
346346
passthru($command);

0 commit comments

Comments
 (0)