cloudflare/cloudflare-php
Match details
Judged for PHP 8.1PCRE2 10.39composer.json require.php · code as of 2026-06-18
src/Configurations/PageRulesActions.php:52 · preg_match()
4950 public function setBypassCacheOnCookie(string $value)51 {52 if (preg_match('^(azAZ09\.=|_*-+)$i', $value) < 1) {53 throw new ConfigurationsException('Invalid cookie string.');54 }55
Suggested rewrite, by the optimizer
Point at a node, or at a piece of the pattern; the arrow keys walk the tree.
Point at a node to read it.
Runs on php-wasm (Apache-2.0) with mbstring and oniguruma (BSD), loaded from jsDelivr when you press Run; PHP 8.6, which php-wasm does not publish yet, is built from its sources and served by this site. The Step through tab traces the match with PCRE2 itself (BSD-3-Clause), the release the chosen PHP bundles, compiled to WebAssembly as PHP bundles it.
2 findings
What the linter reports on the code at the commit named above. A finding opens in the tool.