This repository was archived by the owner on Mar 12, 2020. It is now read-only.
Commit ae4fc54
committed
Use preg_quote on masks.
- Freenode allows / in user masks. If you pass a freenode mask w/o a
wildcard to UserFilter, preg_match will likely generate an unknown modifier
warning because the pattern will be delimited in the wrong place. Even
if no warning is generated the pattern will be incorrect.
- Preserves behavior of the * wildcard.
- Thanks to freestyledork on Freenode for discovering this behavior.1 parent 2b8bcf8 commit ae4fc54
2 files changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
| 80 | + | |
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
52 | 56 | | |
53 | 57 | | |
54 | 58 | | |
| |||
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
101 | 109 | | |
102 | 110 | | |
103 | 111 | | |
| |||
0 commit comments