Skip to content

Rfi Middleware not working correctly #62

Closed
@SlawomirLech95

Description

@SlawomirLech95

Hello, I found two bugs in "Rfi Middleware":

  1. If the last input in request is url (Always $result is true),
  2. 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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions