{"push_id":1112202586,"size":1,"distinct_size":1,"ref":"refs/heads/master","head":"6078dac56a916da55f6218aa73a23f01605bf3ca","before":"c7cf933cc4e523192d816b613da42de59b334ee4","commits":[{"sha":"6078dac56a916da55f6218aa73a23f01605bf3ca","author":{"email":"a348a171a7681d9dadbef95e60574c8370431eb3@wikimedia.org","name":"Bryan Davis"},"message":"www: Title encode usernames by converting space to '_'\n\nPhp's urlencode() converts spaces to '+'. Wikitech 301 redirects an URL\nlike https://wikitech.wikimedia.org/wiki/User:Foo+Bar to\nhttps://wikitech.wikimedia.org/wiki/User:Foo%2BBar. This happens because\nurlencode() generates application/x-www-form-urlencoded strings which\nare technically only valid in a query string or form data. RFC 3986\ncompliant URIs must use '%20' to encode a space.\n\nThere are a couple of was to fix this. One is to use rawurlencode()\nwhich is RFC 3986 compliant. The other is to convert spaces to '_'\n(MediaWiki Title's canonicalization of spaces). Using the MW encoding\nshould save the user a 301 redirect so lets us that method.\n\nChange-Id: I4d944fd49b69a3bf79e2b8448de7e630d6011de8","distinct":true,"url":"https://api.github.com/repos/wikimedia/labs-toollabs/commits/6078dac56a916da55f6218aa73a23f01605bf3ca"}]}