diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-02-22 19:59:02 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2010-02-22 19:59:02 +0100 |
commit | 3a4dec369d7d3644ffdb097babe10e0431b1e9d6 (patch) | |
tree | abea2eb07f854449e60a153e1c1ec9fffdf01ddd /error.cgi | |
parent | 74dd6f509092e294baf7650b6c1a0fd1cde4be4a (diff) |
add option to disable autobugreport
Diffstat (limited to 'error.cgi')
-rwxr-xr-x | error.cgi | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -91,12 +91,15 @@ $h << "</div></div>" $h.out($cgi) -tmpfile = "/tmp/error.#{rand(10000)}" -File.open(tmpfile,"w"){|f| - f << errorstr -} +if AUTO_SEND_REPORT + tmpfile = "/tmp/error.#{rand(10000)}" + File.open(tmpfile,"w"){|f| + f << errorstr + } -`mail -s "Bug in dudle" #{BUGREPORTMAIL} < #{tmpfile}` + `mail -s "Bug in dudle" #{BUGREPORTMAIL} < #{tmpfile}` -File.delete(tmpfile) + File.delete(tmpfile) + +end |