Update Security.php 

Error when preg_replace was being called, fixed with preg_replace_callback.