Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent column size larger than 255 in sessions table #931

Closed
mickey9801 opened this issue May 14, 2016 · 0 comments
Closed

agent column size larger than 255 in sessions table #931

mickey9801 opened this issue May 14, 2016 · 0 comments

Comments

@mickey9801
Copy link

mickey9801 commented May 14, 2016

I found that the size of agent column in sessions table is larger than 255, which will trigger user agent mismatch when using SQL session and browse with Facebook mobile app's browser or Facebook Messenger's browser on iPhone. I change the column type to VARCHAR(300) myself but I think this should be reflected to \DB\SQL\Session::__construct().

The correct user agent of Facebook mobile app's browser (262 characters):
Mozilla/5.0 (iPhone; CPU iPhone OS 9_3_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13E238 [FBAN/FBIOS;FBAV/55.0.0.40.137;FBBV/29582208;FBRV/0;FBDV/iPhone8,4;FBMD/iPhone;FBSN/iPhone OS;FBSV/9.3.1;FBSS/2;FBCR/CSL;FBID/phone;FBLC/zh_HK;FBOP/5]

ikkez added a commit to f3-factory/fatfree-core that referenced this issue Jun 27, 2016
@ikkez ikkez closed this as completed Jun 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants