. * */ namespace Friendica\Module\WellKnown; use Friendica\BaseModule; /** * Standardized way of exposing metadata about the project security policy * @see https://securitytxt.org */ class SecurityTxt extends BaseModule { public static function rawContent(array $parameters = []) { $name = 'security.txt'; $fp = fopen($name, 'rt'); header('Content-type: text/plain; charset=utf-8'); header("Content-Length: " . filesize($name)); fpassthru($fp); exit; } }