Skip to content

Commit c370621

Browse files
authored
Merge pull request #814 from Geolim4/v7
Fixed vulnerability issue that cause exposed phpinfo() in some situations.
2 parents 17cf22b + 05a1cd5 commit c370621

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.gitattributes

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/tests export-ignore
2+
/docs/examples export-ignore
23
/bin/ci export-ignore
34
/bin/stubs export-ignore
45
/.github export-ignore
@@ -14,4 +15,4 @@ CODING_GUIDELINE.md export-ignore
1415
phpunit.xml.dist export-ignore
1516
phpcs.xml.dist export-ignore
1617
composer.lock export-ignore
17-
CNAME export-ignore
18+
CNAME export-ignore

docs/examples/phpinfo.php

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/Phpfastcache/Drivers/Riak/Driver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ public function getStats(): DriverStatistic
145145
return (new DriverStatistic())
146146
->setData(\implode(', ', \array_keys($this->itemInstances)))
147147
->setRawData($info)
148-
->setSize(false)
148+
->setSize(0)
149149
->setInfo('Riak does not provide size/date information att all :(');
150150
}
151-
}
151+
}

0 commit comments

Comments
 (0)