Files
opensourcepos/app/Controllers
objecttothis 9f70efb592 fix(Jobs): anchor throttle field regex to prevent id extraction bugs
Throttle POST field parsing used preg_replace with an unanchored
lazy pattern to pull numeric ids out of field names, which could
mis-extract or silently fall through on unexpected key formats.

- Replace preg_replace('/.*?_(\d+)$/', ...) with preg_match against
  an anchored pattern ('/^throttle_count_(\d+)$/' and
  '/^throttle_period_(\d+)$/') in app/Controllers/Jobs.php
- Only process the key when the anchored pattern actually matches,
  avoiding bogus $throttleId values feeding $arraySave/$notToDelete

Signed-off-by: objecttothis <17935339+objecttothis@users.noreply.github.com>
2026-09-17 16:20:26 +04:00
..
2025-03-28 21:24:21 +04:00
2026-09-01 10:59:29 +04:00
2026-09-01 10:59:29 +04:00