'This method finds out if the local file has been successfully included
in the resulting HTML.
:param response: The HTTP response object
:return: A list of errors found on the page'

def _find_common_file_fragments(self, response):

    res = set()
    matches = self.file_pattern_multi_in.query(response.get_body())
    for file_pattern_match in matches:
        res.add(file_pattern_match)
    if (len(res) == 1):
        msg = 'A    file    fragment    was    found.    The    section    where    the    file    is    included    is    (only    a    fragment    is    shown):    "%s".    This    is    just    an    informational    message,    which    might    be    related        to    a    vulnerability    and    was    found    on    response    with    id    %s.'
        om.out.debug((msg % (list(res)[0], response.id)))
    if (len(res) > 1):
        msg = 'File    fragments    have    been    found.    The    following    is    a    list    of    file    fragments    that    were    returned    by    the    web    application    while    testing    for    local    file    inclusion:    \n'
        for file_pattern_match in res:
            msg += ('-    "%s"    \n' % file_pattern_match)
        msg += ('This    is    just    an    informational    message,    which    might    be    related    to    a    vulnerability    and    was    found    in    response    with    id    %s.' % response.id)
        om.out.debug(msg)
    return res
