summaryrefslogtreecommitdiff
path: root/it.class
diff options
context:
space:
mode:
authorUrban Müller2017-11-20 15:34:20 +0100
committerUrban Müller2017-11-20 15:34:20 +0100
commit94fba3bea36844b308829cfd04f0285c0b134a81 (patch)
treef2166ab029c5b21f077800fed7f9085fc9ea51a7 /it.class
parent7b5b4e79fb8feccd8cdfb90be5ca8ddeb12c90e6 (diff)
downloaditools-94fba3bea36844b308829cfd04f0285c0b134a81.tar.gz
itools-94fba3bea36844b308829cfd04f0285c0b134a81.tar.bz2
itools-94fba3bea36844b308829cfd04f0285c0b134a81.zip
::error now strips passwords correctly, not it_cache blocking on devel
Diffstat (limited to 'it.class')
-rw-r--r--it.class5
1 files changed, 3 insertions, 2 deletions
diff --git a/it.class b/it.class
index 52b554d..8e8be22 100644
--- a/it.class
+++ b/it.class
@@ -219,7 +219,8 @@ static function error($p = array())
{
@unlink($lastsentfn);
@touch($lastsentfn);
- it_cache::put($lastsentfn, time(), ['distributed' => true, 'ttl' => 7*86400, 'safety' => 0]);
+ if (it::is_live())
+ it_cache::put($lastsentfn, time(), ['distributed' => true, 'ttl' => 7*86400, 'safety' => 0]);
}
}
}
@@ -240,7 +241,7 @@ static function error($p = array())
if ($sendmail) # we're mailing: send maximum info
{
- $p['title'] = it::replace(['\.[^:]*|alert:|server:|^: "' => "", '(pw|passw|password|secret)(\] => |=)[^&\s]*' => '$1$2*****'], $GLOBALS['ULTRASITE'] . ": ") . $p['title'] . " (via " . getenv('HOSTNAME') . ")";
+ $p['title'] = it::replace(['alert:|server:|^: "' => "", '(pw|passw|password|secret)(=)[^&\s]*' => '$1$2*****'], $GLOBALS['ULTRASITE'] . ": " . $p['title']) . " (via " . getenv('HOSTNAME') . ")";
if (!$p['omitdebuginfo'])
{