Commit f94eff0
committed
<fix>[core]: handle malformed Accept-Language header in LocaleUtils
Java's String.split(";") on ";;;" returns an empty array, causing
ArrayIndexOutOfBoundsException in parseAcceptLanguage. Add bounds
check before accessing tagAndParams[0].
Change-Id: I$(openssl rand -hex 20)1 parent 708fc5e commit f94eff0
1 file changed
Lines changed: 6 additions & 0 deletions
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
92 | 98 | | |
93 | 99 | | |
94 | 100 | | |
| |||
0 commit comments