Commit e9b53d4
committed
ginoauth2: use strings.Cut
Use strings.Cut to avoid excessive memory allocation for malicious
requests.
Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>1 parent 66a94d4 commit e9b53d4
1 file changed
+4
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
113 | 113 | | |
114 | | - | |
115 | | - | |
| 114 | + | |
116 | 115 | | |
117 | 116 | | |
118 | 117 | | |
| |||
0 commit comments