Skip to content

Commit d7cf0d8

Browse files
committed
Prepare for 2.8.1 release
1 parent 254ced6 commit d7cf0d8

File tree

1 file changed

+79
-7
lines changed

1 file changed

+79
-7
lines changed

package.xml

+79-7
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ http://pear.php.net/dtd/package-2.0.xsd">
1414
<email>[email protected]</email>
1515
<active>yes</active>
1616
</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>
1919
<version>
2020
<release>2.8.1</release>
2121
<api>2.8.1</api>
@@ -26,20 +26,37 @@ http://pear.php.net/dtd/package-2.0.xsd">
2626
</stability>
2727
<license uri="https://github.com/squizlabs/PHP_CodeSniffer/blob/master/licence.txt">BSD 3-Clause License</license>
2828
<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+
2949
- 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
3350
- PEAR.Functions.FunctionDeclaration now reports an error for blank lines found inside a function declaration
3451
- PEAR.Functions.FunctionDeclaration no longer reports indent errors for blank lines in a function declaration
3552
- Squiz.Functions.MultiLineFunctionDeclaration no longer reports errors for blank lines in a function declaration
3653
-- It would previously report that only one argument is allowed per line
3754
- 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
3956
- Squiz.Commenting.FunctionComment now works correctly when function return types also contain a comment
4057
-- Thanks to Juliette Reinders Folmer for the patch
4158
- 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
4360
- Squiz.ControlStructures.InlineIfDeclaration is now able to fix the spacing errors it reports
4461
- Fixed bug #1340 : STDIN file contents not being populated in some cases
4562
-- Thanks to David Biňovec for the patch
@@ -2466,6 +2483,61 @@ http://pear.php.net/dtd/package-2.0.xsd">
24662483
</filelist>
24672484
</phprelease>
24682485
<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>
24692541
<release>
24702542
<version>
24712543
<release>2.8.0</release>

0 commit comments

Comments
 (0)