JessYanCoding / JessYanCoding/MVPArt
URLDecoder: Illegal hex characters in escape (%) pattern : %u7
- Dominant language
- Java
- Stars
- 776
- Forks
- 149
- PR merge metrics
- No merged PRs in 30d
Description
Retrofit Code by Kotlin:
```
@POST("/xxx/xxxxx/add")
suspend fun newPatQuestionAdd(@Body request: AddProblem): BaseBean
```
the param "request" have some fields, one of the field contains String `%28%29%u704C%u5357%u9EBB%u5C06`, this fied lead to crash, as follow:
Crash Report:
```
E java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern : %u7
at java.net.URLDecoder.decode(URLDecoder.java:178)
at me.jessyan.art.http.log.RequestInterceptor.parseParams(RequestInterceptor.java:173)
at me.jessyan.art.http.log.RequestInterceptor.intercept(RequestInterceptor.java:50)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
```
Contributor guide
Assessment
This issue has not been assessed yet.