Rfi Middleware not working correctly
SlawomirLech95 opened this issue · 1 comments
SlawomirLech95 commented
Hello, I found two bugs in "Rfi Middleware":
- If the last input in request is url (Always $result is true),
- The code bellow, also not checks urls because always method checkContent get "true", method checkContent should check items from matched items from the third parameter of preg_match function
if (!$result = preg_match($pattern, $this->applyExceptions($value))) {
continue;
}
if (!$this->checkContent($result)) {
continue;
}
"preg_match() returns 1 if the pattern matches given subject, 0 if it does not, or false on failure."
denisdulici commented
Feel free to send a PR, and I'd be more than happy to review and merge it.