Ignore:
Timestamp:
Oct 10, 2011, 10:24:50 AM (13 years ago)
Author:
gah
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gui/scripts/bugreport.tcl

    r2606 r2611  
    282282    set extraInfo [string map $map $extraInfo]
    283283}
     284
     285# ----------------------------------------------------------------------
     286# USAGE: attach <name> <string>
     287#
     288# Removes any sensitive information in the bug report.  This is useful
     289# for things such as passwords that should be scrubbed out before any
     290# ticket is filed.  Replaces the <string> with an optional <replacement>
     291# string (or ******** by default).  This is usually called in some sort
     292# of "catch" before forwarding the error on to the usual bgerror routine.
     293# ----------------------------------------------------------------------
     294proc Rappture::bugreport::attach {str {repl ********}} {
     295    global errorInfo
     296    variable extraInfo
     297
     298    set map [list $str $repl]
     299    set errorInfo [string map $map $errorInfo]
     300    set extraInfo [string map $map $extraInfo]
     301}
     302
    284303
    285304# ----------------------------------------------------------------------
     
    435454    set cmts [string trim [.bugreport.comments.info.text get 1.0 end]]
    436455    if {[string length $cmts] > 0} {
    437         set report "$cmts\n[string repeat = 72]\n$report"
     456        set report "$cmts\n\n[string repeat = 72]\n$report"
    438457    }
    439458
Note: See TracChangeset for help on using the changeset viewer.