mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 05:23:35 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			291 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			291 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;
 |