mirror of
https://github.com/itflow-org/itflow
synced 2026-12-05 18:49:01 +00:00
CrowdSec no longer blocks new tickets and recurring tickets: the work-booking fields CrowdSec's copy of the OWASP Core Rule Set took for the Unix command sched are renamed book_at, book_minutes, book_onsite, book_time and book_agent in New Ticket, Dispatch's link to it, the Schedule window, the helper window and recurring tickets, the cron job window's field is job_schedule, the tickets list's Scheduled tab is show=booked, Maintenance > Cron sorts by when, and Stripe Checkout returns with checkout in place of session_id, each still accepting the old name; CONTRIBUTING.md rule and 26.12.6 changelog
This commit is contained in:
@@ -1445,7 +1445,8 @@ if (isset($_GET['create_stripe_checkout'])) {
|
||||
$stripe_customer_id = $client_provider ? escapeSql($client_provider['payment_provider_client']) : null;
|
||||
|
||||
// Return URL when checkout finishes
|
||||
$return_url = "https://$config_base_url/client/post.php?stripe_save_card&session_id={CHECKOUT_SESSION_ID}";
|
||||
// checkout, not session_id: a web application firewall takes session_id with no Referer for session fixation
|
||||
$return_url = "https://$config_base_url/client/post.php?stripe_save_card&checkout={CHECKOUT_SESSION_ID}";
|
||||
|
||||
try {
|
||||
require_once '../includes/stripe_init.php';
|
||||
@@ -1531,7 +1532,7 @@ if (isset($_GET['stripe_save_card'])) {
|
||||
}
|
||||
|
||||
// The checkout session from the address must be the one this sign-in started
|
||||
$checkout_session_id = (string) ($_GET['session_id'] ?? '');
|
||||
$checkout_session_id = (string) ($_GET['checkout'] ?? $_GET['session_id'] ?? '');
|
||||
$expected_session_id = (string) ($_SESSION['stripe_checkout_session_id'] ?? '');
|
||||
unset($_SESSION['stripe_checkout_session_id']);
|
||||
if ($checkout_session_id === '' || $expected_session_id === '' || !hash_equals($expected_session_id, $checkout_session_id)) {
|
||||
|
||||
Reference in New Issue
Block a user