GX-Bug #56387 » GoogleShoppingCronJobURLFix.patch
src/GXModules/Gambio/GoogleShopping/Admin/Classes/Controllers/GoogleShoppingController.inc.php (date 1524674342000) | ||
---|---|---|
321 | 321 |
{ |
322 | 322 |
$schemeData = $this->generateSchemeData($schemeId); |
323 | 323 |
$languageId = new IdType($schemeData['language_id']); |
324 |
$pageToken = $_SESSION['coo_page_token']->generate_token(); |
|
324 |
|
|
325 |
$t_token = LogControl::get_secure_token(); |
|
326 |
$t_token = md5($t_token); |
|
325 | 327 |
|
326 | 328 |
$data = [ |
327 | 329 |
'scheme' => $schemeData, |
... | ... | |
336 | 338 |
'properties' => $this->getProperties($languageId), |
337 | 339 |
'additionalFields' => $this->getAdditionalFields($languageId), |
338 | 340 |
'cronjob_url' => HTTP_SERVER . DIR_WS_CATALOG |
339 |
. 'request_port.php?module=CSV&action=export&token=' . $pageToken,
|
|
341 |
. 'request_port.php?module=CSV&action=export&token=' . $t_token,
|
|
340 | 342 |
]; |
341 | 343 |
|
342 | 344 |
return $data; |