Skip to content

the preg may out of pcre.backtrack_limit #290

Closed

Description

@fyzzy1943

e.g.
TEST="aaaaaaaaa vvvvvaaaaa\aaaanaa"

we get an PREG_BACKTRACK_LIMIT_ERROR,

Activity

  1. fyzzy1943 commented on Oct 18, 2018

    @fyzzy1943
    Author

    and why we must use double backslash?

  2. danielstokes commented on Oct 22, 2018

    @danielstokes
    Contributor

    to escape the backslash

  3. fyzzy1943 commented on Oct 23, 2018

    @fyzzy1943
    Author

    to escape the backslash

    thank you, I know it, but I want know why we must use double backslash if use quote. and we can use single backslash when don't use quote. why design by this.

  4. GrahamCampbell commented on Jan 2, 2019

    @GrahamCampbell
    Collaborator

    Thanks for the report, but I couldn't replicate this breaking with an env file containing:

    TEST="aaaaaaaaa vvvvvaaaaa\aaaanaa"
    

    Perhaps you need to increase the value of pcre.backtrack_limit on your server.

  5. GrahamCampbell commented on Jan 26, 2019

    @GrahamCampbell
    Collaborator

    @fyzzy1943 I've fixed the error message so it lets you know you need to escape the backslash. It now says "invalid escape sequence" instead of crashing with the preg error.


    See #322.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions