Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue: [security] Undisclosed security issue in PHPMailer libra…
…ry - updated PHPMailer to 5.2.21
- Loading branch information
Showing
68 changed files
with
9,226 additions
and
1,154 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
* text=auto | ||
|
||
/docs export-ignore | ||
/test export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.travis.yml export-ignore | ||
/travis.phpunit.xml.dist export-ignore | ||
/SECURITY.md export-ignore | ||
/changelog.md export-ignore | ||
/README.md export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
docs/phpdoc/ | ||
test/message.txt | ||
test/testbootstrap.php | ||
test/*.pem | ||
build/ | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
build: | ||
environment: | ||
php: '5.6.0' | ||
|
||
before_commands: | ||
- "composer install --prefer-source" | ||
|
||
tools: | ||
external_code_coverage: | ||
enabled: true | ||
timeout: 300 | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
php_code_coverage: | ||
enabled: false | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
php_code_sniffer: | ||
enabled: true | ||
config: | ||
standard: PSR2 | ||
sniffs: | ||
generic: | ||
files: | ||
one_class_per_file_sniff: false | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Copy/Paste Detector | ||
php_cpd: | ||
enabled: true | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
# PHP CS Fixer (http://http://cs.sensiolabs.org/). | ||
php_cs_fixer: | ||
enabled: true | ||
config: | ||
level: psr2 | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_loc: | ||
enabled: true | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
# PHP Mess Detector (http://phpmd.org). | ||
php_mess_detector: | ||
enabled: true | ||
config: | ||
rulesets: | ||
- codesize | ||
- unusedcode | ||
- naming | ||
- design | ||
naming_rules: | ||
short_variable: { minimum: 2 } | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Analyzes the size and structure of a PHP project. | ||
php_pdepend: | ||
enabled: true | ||
excluded_dirs: | ||
- docs | ||
- examples | ||
- extras | ||
- test | ||
- vendor | ||
|
||
# Runs Scrutinizer's PHP Analyzer Tool | ||
# https://scrutinizer-ci.com/docs/tools/php/php-analyzer/config_reference | ||
php_analyzer: | ||
enabled: true | ||
config: | ||
checkstyle: | ||
enabled: true | ||
naming: | ||
enabled: true | ||
property_name: ^[_a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps | ||
method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9_]*$ #Allow underscores & caps | ||
parameter_name: ^[a-z][a-zA-Z0-9_]*$ # Allow underscores | ||
local_variable: ^[a-zA-Z][a-zA-Z0-9_]*$ #Allow underscores & caps | ||
exception_name: ^[a-zA-Z][a-zA-Z0-9]*Exception$ | ||
isser_method_name: ^(?:[_a-zA-Z]|__)[a-zA-Z0-9]*$ #Allow underscores & caps | ||
filter: | ||
excluded_paths: | ||
- 'docs/*' | ||
- 'examples/*' | ||
- 'extras/*' | ||
- 'test/*' | ||
- 'vendor/*' | ||
|
||
# Security Advisory Checker | ||
sensiolabs_security_checker: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
language: php | ||
php: | ||
- 7.1 | ||
- 7.0 | ||
- 5.6 | ||
- 5.5 | ||
- 5.4 | ||
- 5.3 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: hhvm | ||
|
||
before_install: | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -y -qq postfix | ||
before_script: | ||
- sudo service postfix stop | ||
- smtp-sink -d "%d.%H.%M.%S" localhost:2500 1000 & | ||
- mkdir -p build/logs | ||
- cd test | ||
- cp testbootstrap-dist.php testbootstrap.php | ||
- chmod +x fakesendmail.sh | ||
- sudo mkdir -p /var/qmail/bin | ||
- sudo cp fakesendmail.sh /var/qmail/bin/sendmail | ||
- sudo cp fakesendmail.sh /usr/sbin/sendmail | ||
- echo 'sendmail_path = "/usr/sbin/sendmail -t -i "' > $(php --ini|grep -m 1 "ini files in:"|cut -d ":" -f 2)/sendmail.ini | ||
script: | ||
- phpunit --configuration ../travis.phpunit.xml.dist | ||
after_script: | ||
- wget https://scrutinizer-ci.com/ocular.phar | ||
- php ocular.phar code-coverage:upload --format=php-clover ../build/logs/clover.xml |
Oops, something went wrong.