|
@@ -42,7 +42,7 @@ class SensitiveMiddleware implements MiddlewareInterface
|
|
|
$path = $uri->getPath();
|
|
|
|
|
|
try {
|
|
|
- if(in_array($path,self::STREAM_URL)){
|
|
|
+ if($path && in_array($path,self::STREAM_URL)){
|
|
|
$badWords = $this->redis->sMembers('black_word');
|
|
|
$whiteWords = $this->redis->sMembers('white_word');
|
|
|
|