Skip to content

Commit 02709a3

Browse files
Merge pull request #108 from julienloizelet/feat/curl-and-0.26-lib
Feat/curl and 0.26 lib
2 parents 5b95390 + acef57d commit 02709a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

64 files changed

+1353
-878
lines changed

.github/workflows/end-to-end-auto-prepend-test-suite.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
sudo chmod -R 777 ${{ github.workspace }}/wp-content
7777
sudo chmod -R 777 ${{ github.workspace }}/my-own-modules
7878
79+
- name: Some DEBUG information
80+
run: |
81+
ddev --version
82+
ddev exec php -v
83+
ddev exec -s crowdsec crowdsec -version
84+
7985
- name: Install WordPress ${{ matrix.wp-version }} with PHP ${{ matrix.php-version }}
8086
run: |
8187
wget https://wordpress.org/wordpress-${{ matrix.wp-version }}.tar.gz

.github/workflows/end-to-end-test-suite.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ jobs:
7676
sudo chmod -R 777 ${{ github.workspace }}/wp-content
7777
sudo chmod -R 777 ${{ github.workspace }}/my-own-modules
7878
79+
- name: Some DEBUG information
80+
run: |
81+
ddev --version
82+
ddev exec php -v
83+
ddev exec -s crowdsec crowdsec -version
84+
7985
- name: Install WordPress ${{ matrix.wp-version }} with PHP ${{ matrix.php-version }}
8086
run: |
8187
wget https://wordpress.org/wordpress-${{ matrix.wp-version }}.tar.gz

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@v2
4141

4242
- name: Check version ${{ env.VERSION_NUMBER }} consistency in files
43-
# Check crowdsec.php, readme.txt, inc/constants.php and CHANGELOG.md
43+
# Check crowdsec.php, readme.txt, inc/Constants.php and CHANGELOG.md
4444
run: |
4545
CURRENT_DATE=$(date +'%Y-%m-%d')
4646
CHANGELOG_VERSION=$(grep -o -E "## \[(.*)\] - $CURRENT_DATE" CHANGELOG.md | head -1 | sed 's/ //g')
@@ -84,14 +84,14 @@ jobs:
8484
echo "Stable tag in readme.txt: KO"
8585
exit 1
8686
fi
87-
CONSTANT_VERSION=$(grep -E "WordPress CrowdSec Bouncer/v(.*)" inc/constants.php | sed 's/[\x27(),/ ]//g')
87+
CONSTANT_VERSION=$(grep -E "WordPress CrowdSec Bouncer/v(.*)" inc/Constants.php | sed 's/[\x27(),/ ]//g')
8888
echo $CONSTANT_VERSION
89-
echo "defineCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }}"
90-
if [[ $CONSTANT_VERSION == "defineCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }};" ]]
89+
echo "publicconstCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }}"
90+
if [[ $CONSTANT_VERSION == "publicconstCROWDSEC_BOUNCER_USER_AGENTWordPressCrowdSecBouncerv${{ env.VERSION_NUMBER }};" ]]
9191
then
92-
echo "Version in inc/constants.php: OK"
92+
echo "Version in inc/Constants.php: OK"
9393
else
94-
echo "Version in inc/constants.php: KO"
94+
echo "Version in inc/Constants.php: KO"
9595
exit 1
9696
fi
9797

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,18 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7+
8+
## [1.8.0] - 2022-08-04
9+
10+
### Added
11+
- Add `use_curl` configuration: should be used if `allow_url_fopen` is disabled and `curl` is available
12+
- Add `disable_prod_log` configuration
13+
14+
### Changed
15+
- Change log path to `wp-content/plugins/crowdsec/logs`
16+
- By default, the `bouncing_level` setting is `bouncing_disabled` (instead of `normal_bouncing`)
17+
18+
719
## [1.7.0] - 2022-07-21
820

921
### Added

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
},
2121
"require": {
22-
"crowdsec/bouncer": "0.24.0",
22+
"crowdsec/bouncer": "0.28.0",
2323
"symfony/polyfill-mbstring": "1.20.0",
2424
"symfony/service-contracts": "2.4.1"
2525
},

composer.lock

Lines changed: 43 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crowdsec.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin URI: https://github.com/crowdsecurity/cs-wordpress-bouncer
55
* Description: Safer Together. Protect your WordPress application with CrowdSec.
66
* Tags: crowdsec-bouncer, wordpress, security, firewall, captcha, ip-scanner, ip-blocker, ip-blocking, ip-address, ip-database, ip-range-check, crowdsec, ban-hosts, ban-management, anti-hacking, hacker-protection, captcha-image, captcha-generator, captcha-generation, captcha-service
7-
* Version: 1.7.0
7+
* Version: 1.8.0
88
* Author: CrowdSec
99
* Author URI: https://www.crowdsec.net/
1010
* Github: https://github.com/crowdsecurity/cs-wordpress-blocker
@@ -13,7 +13,7 @@
1313
* Requires PHP: 7.2
1414
* Requires at least: 4.9
1515
* Tested up to: 6.0
16-
* Stable tag: 1.7.0
16+
* Stable tag: 1.8.0
1717
* Text Domain: crowdsec-wp
1818
* First release: 2021.
1919
*/
@@ -24,9 +24,6 @@
2424

2525

2626
require_once __DIR__.'/inc/plugin-setup.php';
27-
require_once __DIR__.'/inc/constants.php';
28-
$crowdsecRandomLogFolder = get_option('crowdsec_random_log_folder') ?: '';
29-
crowdsecDefineConstants($crowdsecRandomLogFolder);
3027
require_once __DIR__.'/inc/scheduling.php';
3128
register_activation_hook(__FILE__, 'activate_crowdsec_plugin');
3229
register_deactivation_hook(__FILE__, 'deactivate_crowdsec_plugin');

0 commit comments

Comments
 (0)