Skip to content

Unhandled catostrophic backtracking. #130

Description

@JBHUTT09

With certain inputs, the line $text = preg_replace_callback($this->callbackSearch, array($this, 'pregCallback'), $text); in Html2Text::converter() fails, setting the $text variable to null and causing the next line, strip_tags(), to throw an exception. When inserting var_dump(preg_last_error_message()) between the two lines, you get the message "Backtrack limit exhausted."

The particular HTML input that triggered this in my case contained a base 64 image.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions