Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

catastrophic backtracking #92

Closed
juandi opened this issue Apr 13, 2018 · 2 comments
Closed

catastrophic backtracking #92

juandi opened this issue Apr 13, 2018 · 2 comments
Assignees

Comments

@juandi
Copy link

juandi commented Apr 13, 2018

Expected Behavior

detect <input name="_token"

Acutal Behavior

donest detect <input name="_token"

Environment

  • PHP Version: 7
  • Laravel Version: 56
  • LaravelCaffeine Version: 0.6.8

Stack Trace

Catastrophic backtracking qhen test the regex in regex101. If I am on a edit form with method = put, the regex does´t detect the _token input field. You can test it:

If remove the _method input, then the regex detect _token without problems.

Thanks for every thing

@mikebronner
Copy link
Owner

Please provide an Some HTML with the form and elements that are causing this issue so I can easily replicate the issue. Thanks for reporting this!

@juandi
Copy link
Author

juandi commented Apr 16, 2018

Hi mike!

thanks for your fast reply. Here is a HTML source that make the error: (if you want to try: https://regex101.com/r/ofvmfh/1)
`

                <form method="POST" action="https://webserver/en/cms/news/2" accept-charset="UTF-8" class="form form-horizontal form-label-left" data-type="ajax"><input name="_method" type="hidden" value="PUT"><input name="_token" type="hidden" value="mhDCFj9Zqk3sOijfSVOJdFyO5HEHBB2L4GDutGbm">
                        </form>

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

No branches or pull requests

2 participants