From a79f844e53f9012ae943735af498cbe9a148c7a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Fromme?= Date: Wed, 21 Aug 2024 14:30:37 +0200 Subject: [PATCH] fix: remove code potentially generating invalid cookies --- .../ext/ep_products/Classes/Utility/BookingUrlUtility.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php b/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php index 7eb5bed8..dbec9881 100644 --- a/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php +++ b/public/typo3conf/ext/ep_products/Classes/Utility/BookingUrlUtility.php @@ -35,8 +35,7 @@ class BookingUrlUtility { const COOKIE_NAME = 'ep_trk'; - const COOKIE_NAME_BPN = 'bpn_cookie'; - const URL_BASE = 'https://bpn.ep-reisen.de/buspronet/maske_buchung.php'; + const URL_BASE = 'https://www.ep-reisen.de/buchung/maske_buchung.php'; public static function generateUrl(array $options): string { @@ -60,7 +59,6 @@ class BookingUrlUtility $query = static::buildQuery($bookingId, $hotelId, $dateEnd, $template, $isDayTrip); $epCookie = CookieUtility::getPaCookie(); - $bpnCookie = CookieUtility::getBpnCookie(); if (isset($_COOKIE[static::COOKIE_NAME])) { if (!preg_match('/^([a-z]{4}|PA)\d{3,4}$/', $_COOKIE[static::COOKIE_NAME])) { @@ -73,8 +71,6 @@ class BookingUrlUtility if (null !== $paCode) { $query['agenturcode'] = $paCode; - } elseif ($bpnCookie) { - $query['agenturcode'] = $bpnCookie; } elseif ($epCookie) { $queryParameter = CookieUtility::getQueryParameter($epCookie); $query[$queryParameter] = $epCookie;