mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-02 21:13:36 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			21 lines
		
	
	
		
			297 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			297 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
use strict;
 | 
						|
use warnings;
 | 
						|
 | 
						|
sub scrub_text {
 | 
						|
    return if /^\x89PNG/ || /^PK\x03\x04/;
 | 
						|
 | 
						|
    s/opensesame/xxxxxxxxxx/g;
 | 
						|
    s/hunter2/xxxxxxx/g;
 | 
						|
}
 | 
						|
 | 
						|
sub scrub_filename {
 | 
						|
    if ( m%^secret-directory/% || m%settings\.ini$% ) {
 | 
						|
        undef $_;
 | 
						|
    }
 | 
						|
    else {
 | 
						|
        s/bruce/batman/g;
 | 
						|
    }
 | 
						|
}
 | 
						|
 | 
						|
1;
 |