Changeset 2611 for trunk/gui/scripts/bugreport.tcl
- Timestamp:
- Oct 10, 2011, 10:24:50 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gui/scripts/bugreport.tcl
r2606 r2611 282 282 set extraInfo [string map $map $extraInfo] 283 283 } 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 # ---------------------------------------------------------------------- 294 proc 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 284 303 285 304 # ---------------------------------------------------------------------- … … 435 454 set cmts [string trim [.bugreport.comments.info.text get 1.0 end]] 436 455 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" 438 457 } 439 458
Note: See TracChangeset
for help on using the changeset viewer.