acct uri should be caseinsensitive (so let's do our reconstruction in lowercase)

This commit is contained in:
Mikael Nordfeldth 2013-10-28 18:28:53 +01:00
parent 74429835a1
commit fd0a16ba04

View File

@ -41,7 +41,7 @@ class WebFingerResource_Profile extends WebFingerResource
if (empty($this->object->nickname) || empty($host)) {
throw new WebFingerReconstructionException($this->object);
}
$acct = sprintf('acct:%s@%s', $this->object->nickname, $host);
$acct = mb_strtolower(sprintf('acct:%s@%s', $this->object->nickname, $host));
Event::handle('EndWebFingerReconstruction', array($this->object, &$acct));
}