Commit 6d0ac211 authored by mmn's avatar mmn

Return 404 on resource-not-found for WebFinger

parent d350a20e
......@@ -40,15 +40,15 @@ class WebfingerAction extends XrdAction
Event::handle('EndGetWebFingerResource', array($this->resource, &$this->target, $this->args));
}
if (!$this->target instanceof WebFingerResource) {
throw new ServerException('Resource not found in local database.', 404);
}
return true;
}
protected function setXRD()
{
if (!($this->target instanceof WebFingerResource)) {
throw new Exception(_('Target not set for resource descriptor'));
}
$this->xrd->subject = $this->resource;
foreach ($this->target->getAliases() as $alias) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment