A optimizer for fis to fix smarty xss