Page MenuHomePhabricator

If no user-agent is passed, cuc_agent is 0
Closed, ResolvedPublic

Description

CheckUser blindly passes result of $wgRequest->getHeader( 'User-Agent' ) to the database.

If no user-agent is passed, $wgRequest->getHeader( 'User-Agent' ) is false. MariaDB stores that boolean as a zero.

We should transform that false to an empty string, which will cause cuc_agent to have more understandable data.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 731766 had a related patch set uploaded (by Urbanecm; author: Urbanecm):

[mediawiki/extensions/CheckUser@master] If no user-agent is passed, cuc_agent should be an empty string

https://gerrit.wikimedia.org/r/731766

Change 731766 merged by jenkins-bot:

[mediawiki/extensions/CheckUser@master] If no user-agent is passed, cuc_agent should be an empty string

https://gerrit.wikimedia.org/r/731766

image.png (97×1 px, 10 KB)

Calling this fixed :).