@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
14
14
15
15
<active >yes</active >
16
16
</lead >
17
- <date >2017-02 -02</date >
18
- <time >14:23 :00</time >
17
+ <date >2017-03 -02</date >
18
+ <time >09:12 :00</time >
19
19
<version >
20
20
<release >2.8.1</release >
21
21
<api >2.8.1</api >
@@ -26,20 +26,37 @@ http://pear.php.net/dtd/package-2.0.xsd">
26
26
</stability >
27
27
<license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD 3-Clause License</license >
28
28
<notes >
29
+ - This release contains a fix for a security advisory related to the improper handling of shell commands
30
+ -- Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases
31
+ -- A properly crafted filename or configuration option would allow for arbitrary code execution when using some features
32
+ -- All users are encouraged to upgrade to this version, especially if you are checking 3rd-party code
33
+ --- e.g., you run PHPCS over libraries that you did not write
34
+ --- e.g., you provide a web service that runs PHPCS over user-uploaded files or 3rd-party repositories
35
+ --- e.g., you allow external tool paths to be set by user-defined values
36
+ -- If you are unable to upgrade but you check 3rd-party code, ensure you are not using the following features:
37
+ --- The diff report
38
+ --- The notify-send report
39
+ --- The Generic.PHP.Syntax sniff
40
+ --- The Generic.Debug.CSSLint sniff
41
+ --- The Generic.Debug.ClosureLinter sniff
42
+ --- The Generic.Debug.JSHint sniff
43
+ --- The Squiz.Debug.JSLint sniff
44
+ --- The Squiz.Debug.JavaScriptLint sniff
45
+ --- The Zend.Debug.CodeAnalyzer sniff
46
+ -- Thanks to Klaus Purer for the report
47
+
48
+
29
49
- The PHP-supplied T_COALESCE_EQUAL token has been replicated for PHP versions before 7.2
30
- - Code that uses shell_exec() and exec() now escapes cmds and args in case PHPCS is being used in a web service
31
- -- This changes saves having to do filename and config validation before passing content to PHPCS
32
- -- Thanks to Klaus Purer for reporting this
33
50
- PEAR.Functions.FunctionDeclaration now reports an error for blank lines found inside a function declaration
34
51
- PEAR.Functions.FunctionDeclaration no longer reports indent errors for blank lines in a function declaration
35
52
- Squiz.Functions.MultiLineFunctionDeclaration no longer reports errors for blank lines in a function declaration
36
53
-- It would previously report that only one argument is allowed per line
37
54
- Squiz.Commenting.FunctionComment now corrects multi-line param comment padding more accurately
38
- - Squiz.Commenting.FunctionComment now properly fixes pipe-seperated param types
55
+ - Squiz.Commenting.FunctionComment now properly fixes pipe-separated param types
39
56
- Squiz.Commenting.FunctionComment now works correctly when function return types also contain a comment
40
57
-- Thanks to Juliette Reinders Folmer for the patch
41
58
- Squiz.ControlStructures.InlineIfDeclaration now supports the elvis operator
42
- -- As this is not a real PHP operator, it enforces no spaces beteen ? and : when the THEN statement is empty
59
+ -- As this is not a real PHP operator, it enforces no spaces between ? and : when the THEN statement is empty
43
60
- Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
44
61
- Fixed bug #1340 : STDIN file contents not being populated in some cases
45
62
-- Thanks to David Biňovec for the patch
@@ -2466,6 +2483,61 @@ http://pear.php.net/dtd/package-2.0.xsd">
2466
2483
</filelist >
2467
2484
</phprelease >
2468
2485
<changelog >
2486
+ <release >
2487
+ <version >
2488
+ <release >2.8.1</release >
2489
+ <api >2.8.1</api >
2490
+ </version >
2491
+ <stability >
2492
+ <release >stable</release >
2493
+ <api >stable</api >
2494
+ </stability >
2495
+ <date >2017-03-02</date >
2496
+ <license uri =" https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt" >BSD License</license >
2497
+ <notes >
2498
+ - This release contains a fix for a security advisory related to the improper handling of shell commands
2499
+ -- Uses of shell_exec() and exec() were not escaping filenames and configuration settings in most cases
2500
+ -- A properly crafted filename or configuration option would allow for arbitrary code execution when using some features
2501
+ -- All users are encouraged to upgrade to this version, especially if you are checking 3rd-party code
2502
+ --- e.g., you run PHPCS over libraries that you did not write
2503
+ --- e.g., you provide a web service that runs PHPCS over user-uploaded files or 3rd-party repositories
2504
+ --- e.g., you allow external tool paths to be set by user-defined values
2505
+ -- If you are unable to upgrade but you check 3rd-party code, ensure you are not using the following features:
2506
+ --- The diff report
2507
+ --- The notify-send report
2508
+ --- The Generic.PHP.Syntax sniff
2509
+ --- The Generic.Debug.CSSLint sniff
2510
+ --- The Generic.Debug.ClosureLinter sniff
2511
+ --- The Generic.Debug.JSHint sniff
2512
+ --- The Squiz.Debug.JSLint sniff
2513
+ --- The Squiz.Debug.JavaScriptLint sniff
2514
+ --- The Zend.Debug.CodeAnalyzer sniff
2515
+ -- Thanks to Klaus Purer for the report
2516
+
2517
+
2518
+ - The PHP-supplied T_COALESCE_EQUAL token has been replicated for PHP versions before 7.2
2519
+ - PEAR.Functions.FunctionDeclaration now reports an error for blank lines found inside a function declaration
2520
+ - PEAR.Functions.FunctionDeclaration no longer reports indent errors for blank lines in a function declaration
2521
+ - Squiz.Functions.MultiLineFunctionDeclaration no longer reports errors for blank lines in a function declaration
2522
+ -- It would previously report that only one argument is allowed per line
2523
+ - Squiz.Commenting.FunctionComment now corrects multi-line param comment padding more accurately
2524
+ - Squiz.Commenting.FunctionComment now properly fixes pipe-separated param types
2525
+ - Squiz.Commenting.FunctionComment now works correctly when function return types also contain a comment
2526
+ -- Thanks to Juliette Reinders Folmer for the patch
2527
+ - Squiz.ControlStructures.InlineIfDeclaration now supports the elvis operator
2528
+ -- As this is not a real PHP operator, it enforces no spaces between ? and : when the THEN statement is empty
2529
+ - Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
2530
+ - Fixed bug #1340 : STDIN file contents not being populated in some cases
2531
+ -- Thanks to David Biňovec for the patch
2532
+ - Fixed bug #1344 : PEAR.Functions.FunctionCallSignatureSniff throws error for blank comment lines
2533
+ - Fixed bug #1347 : PSR2.Methods.FunctionCallSignature strips some comments during fixing
2534
+ -- Thanks to Algirdas Gurevicius for the patch
2535
+ - Fixed bug #1349 : Squiz.Strings.DoubleQuoteUsage.NotRequired message is badly formatted when string contains a CR newline char
2536
+ -- Thanks to Algirdas Gurevicius for the patch
2537
+ - Fixed bug #1350 : Invalid Squiz.Formatting.OperatorBracket error when using namespaces
2538
+ - Fixed bug #1369 : Empty line in multi-line function declaration cause infinite loop
2539
+ </notes >
2540
+ </release >
2469
2541
<release >
2470
2542
<version >
2471
2543
<release >2.8.0</release >
0 commit comments