Skip to content

Commit 7789139

Browse files
tuupolaNyholm
authored andcommitted
Do not allow slash in method name (#33)
* Do not allow / character in method name * Make StyleCI happy
1 parent 7110f6c commit 7789139

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CachePlugin.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ private function configureOptions(OptionsResolver $resolver)
346346
$resolver->setAllowedValues('hash_algo', hash_algos());
347347
$resolver->setAllowedValues('methods', function ($value) {
348348
/* RFC7230 sections 3.1.1 and 3.2.6 except limited to uppercase characters. */
349-
$matches = preg_grep('/[^A-Z0-9!#$%&\'*\/+\-.^_`|~]/', $value);
349+
$matches = preg_grep('/[^A-Z0-9!#$%&\'*+\-.^_`|~]/', $value);
350350

351351
return empty($matches);
352352
});

0 commit comments

Comments
 (0)