Zhumengxin / webgoat

Automatically exported from code.google.com/p/webgoat
0 stars 0 forks source link

START_SOURCE_SKIP regex is greedy #59

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. View source of a lesson
2. Compare with actual source
3. Notice that there are large chunks of the code missing if more than one 
section skipped

What is the expected output? What do you see instead?
Each source section skipped, instead of all grouped into one. This is due
to the regex for the replacement being greedy.

What version of the product are you using? On what operating system?
Current head, linux

Please provide any additional information below.
A patch for this is attached, which changes it to a non-greedy regex

Original issue reported on code.google.com by H...@aurasoftwaresecurity.co.nz on 3 Feb 2013 at 11:40

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you.  I will use your provided patch.

Original comment by mayhe...@gmail.com on 4 Feb 2013 at 4:42