示例#1
0
 /**
  * @param string $body
  * @return bool
  */
 protected function isDangerBody($body)
 {
     if (self::isFoundInString($body, $this->variables->getQuoteSearchPattern())) {
         return true;
     } else {
         $bodyWithoutQuotes = $this->removeQuotedStrings($body, false);
         if (self::isFoundInString($bodyWithoutQuotes, $this->variables->getSearchPattern())) {
             return true;
         }
     }
     return false;
 }