mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	fix: html purify init wasn't done always when it was used (#5626)
This commit is contained in:
		
				
					committed by
					
						
						Neil Lathwood
					
				
			
			
				
	
			
			
			
						parent
						
							08edfc60e0
						
					
				
				
					commit
					2f1095cb8d
				
			@@ -135,11 +135,6 @@ if (module_selected('web', $init_modules)) {
 | 
			
		||||
        $os_list[] = $config['install_dir'].'/includes/definitions/'. $v['os'] . '.yaml';
 | 
			
		||||
    }
 | 
			
		||||
    load_all_os($os_list);
 | 
			
		||||
 | 
			
		||||
    // initialize HTML Purifier
 | 
			
		||||
    $p_config = HTMLPurifier_Config::createDefault();
 | 
			
		||||
    $p_config->set('Cache.SerializerPath', $config['temp_dir']);
 | 
			
		||||
    $purifier = new HTMLPurifier($p_config);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
$console_color = new Console_Color2();
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user