terrylinooo / shieldon
Showing 1 of 1 files from the diff.

@@ -313,8 +313,10 @@
Loading
313 313
        $deniedList = [];
314 314
315 315
        foreach ($ipList as $ip) {
316 +
            if (empty($ip))
317 +
                continue;
316 318
317 -
            if (0 === strpos($this->kernel->getCurrentUrl(), $ip['url']) ) {
319 +
            if (0 === strpos($this->kernel->getCurrentUrl(), empty($ip['url']) ? '/' : $ip['url']) ) {
318 320
319 321
                if ('allow' === $ip['rule']) {
320 322
                    $allowedList[] = $ip['ip'];
Files Complexity Coverage
src/Firewall 1,173 99.97%
Project Totals (88 files) 1173 99.97%
451.2
10.0=0.0
TRAVIS_OS_NAME=linux
451.1
10.0=0.0
TRAVIS_OS_NAME=linux
451.3
10.0=0.0
TRAVIS_OS_NAME=linux

No yaml found.

Create your codecov.yml to customize your Codecov experience

Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading