File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments