Commit 22847f6
committed
Several changes:
- JS: Don't modify the original regex to make sure we've got a complete match.
Instead, we will just check if the match is exactly as long as the input
text.
Note that if the regex used does a non-greedy match, it will not work
correctly. However, this is an unlikely scenario.
e.g.: if the regex is (abc)+?, the string "abcabc" would be accepted by
the server, but not by the client (the match would be "abc" (3 chars)
which is shorter than "abcabc" (6 chars)).
This however prevents problems with other kinds of regexes, that may
be more likely.
- fix error in parsing cookies1 parent f4b7750 commit 22847f6
File tree
3 files changed
+6
-4
lines changed- src
- Wt
- js
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
570 | 570 | | |
571 | 571 | | |
572 | 572 | | |
| 573 | + | |
| 574 | + | |
573 | 575 | | |
574 | 576 | | |
575 | 577 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
24 | | - | |
| 23 | + | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments