This repository was archived by the owner on Jan 30, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ public function decompress($content)
135
135
$ archive = $ this ->getArchive ();
136
136
137
137
//check if there are null byte characters before doing a file_exists check
138
- if (! strstr ($ content , "\0" ) && file_exists ($ content )) {
138
+ if (false === strpos ($ content , "\0" ) && file_exists ($ content )) {
139
139
$ archive = $ content ;
140
140
}
141
141
Original file line number Diff line number Diff line change @@ -167,7 +167,7 @@ public function decompress($content)
167
167
$ mode = $ this ->getMode ();
168
168
169
169
//check if there are null byte characters before doing a file_exists check
170
- if (! strstr ($ content , "\0" ) && file_exists ($ content )) {
170
+ if (false === strpos ($ content , "\0" ) && file_exists ($ content )) {
171
171
$ archive = $ content ;
172
172
}
173
173
Original file line number Diff line number Diff line change @@ -154,7 +154,7 @@ protected function validatePattern($pattern)
154
154
return true ;
155
155
}
156
156
157
- if (false !== strstr ($ matches ['modifier ' ], 'e ' )) {
157
+ if (false !== strpos ($ matches ['modifier ' ], 'e ' )) {
158
158
throw new Exception \InvalidArgumentException (sprintf (
159
159
'Pattern for a PregReplace filter may not contain the "e" pattern modifier; received "%s" ' ,
160
160
$ pattern
You can’t perform that action at this time.
0 commit comments