Skip to content

Commit

Permalink
Fix regex to properly validate HTTP status line format
Browse files Browse the repository at this point in the history
Changed the regex in CreateResponse to ensure it matches only status lines starting at the beginning of the string. This prevents potential misinterpretation of malformed input and improves overall response handling accuracy.
  • Loading branch information
koriym committed Jan 4, 2025
1 parent a0d5ed2 commit 5e39a5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Fake/app/src/Injector.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function getInstance(string $context): InjectorInterface
{

$meta = new Meta(__NAMESPACE__, $context, dirname(__DIR__));
$cacheNamespace = str_replace('/', '_', dirname(__DIR__)) . $context;
$cacheNamespace = str_replace(['/', '\\', ':'], '_', dirname(__DIR__)) . $context;
var_dump($cacheNamespace);

return PackageInjector::getInstance(__NAMESPACE__, $context, dirname(__DIR__));
Expand Down

0 comments on commit 5e39a5a

Please sign in to comment.