alphadevx / alpha

Full-stack MVC framework for PHP.
http://www.alphaframework.org/
BSD 3-Clause "New" or "Revised" License
5 stars 0 forks source link

Increase the size of the client string in BadRequest #359

Closed alphadevx closed 4 years ago

alphadevx commented 4 years ago

In some instances the client string provided by the HTTP client to BadRequest is greater than 255 chars, e.g:

Mozilla/5.0 (Linux; Android 8.0.0; SM-C7000 Build/R16NW; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/66.0.3359.126 MQQBrowser/6.2 TBS/045130 Mobile Safari/537.36 MMWEBID/6843 MicroMessenger/7.0.4.1420(0x2700043C) Process/tools NetType/WIFI Language/zh_CN

This is resulting in an IllegalArguementException. The fix is to increase the BadRequest::client attribute from SmallText to Text.