3require_once(
'_include.php');
 
    8if (
$_SERVER[
'REQUEST_METHOD'] !== 
'POST') {
 
   18$text = htmlspecialchars((
string) $_REQUEST[
'text']);
 
   24} 
catch (Exception $e) {
 
   30        'exceptionMsg'   => 
'not set',
 
   31        'exceptionTrace' => 
'not set',
 
   33        'trackId'        => 
'not set',
 
   35        'version'        => 
$config->getVersion(),
 
   36        'referer'        => 
'not set',
 
   44foreach (
$data as $k => $v) {
 
   45    $data[$k] = htmlspecialchars($v);
 
   52<p>Message from 
user:</p>
 
   53<div 
class=
"box" style=
"background: yellow; color: #888; border: 1px solid #999900; padding: .4em; margin: .5em">
 
   57<p>Exception: <strong>%s</strong></p>
 
   61<pre><a href=
"%s">%s</a></pre>
 
   72<p>Version: <tt>%s</tt></p>
 
   74<p>Report ID: <tt>%s</tt></p>
 
   76<p>Referer: <tt>%s</tt></p>
 
   85    htmlspecialchars(
$text),
 
   86    $data[
'exceptionMsg'],
 
   87    $data[
'exceptionTrace'],
 
   90    htmlspecialchars(php_uname(
'n')),
 
   91    dirname(dirname(__FILE__)),
 
  102if (!preg_match(
'/\s/', 
$email) && strpos(
$email, 
'@') !== 
false) {
 
  107    $from = 
'no-reply@simplesamlphp.org';
 
  112if (
$config->getBoolean(
'errorreporting', 
true) && 
$toAddress !== 
'na@example.org') {
 
sprintf('%.4f', $callTime)
An exception for terminatinating execution or to throw for unit testing.
static redirectTrustedURL($url, $parameters=array())
This function redirects to the specified URL without performing any security checks.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getSessionFromRequest()
Retrieves the current session.
Attribute-related utility methods.
Temporary autoloader to ensure compatibility with old, non-PSR-2 compliant classes.
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
if($_SERVER['REQUEST_METHOD'] !=='POST') $reportId
catch(Exception $e) if( $data===null) foreach($data as $k=> $v) $message