Permalink
Browse files

Use vsprintf instead of call_user_func_array( 'sprintf', ...)

  • Loading branch information...
1 parent 3acec1d commit 6986a73646595084fa38b3ba5693434b129d2e8f @dregad dregad committed Oct 29, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/error_api.php
View
@@ -425,7 +425,7 @@ function error_string( $p_error ) {
$t_padding = array_pad( array(), 10, '' );
# ripped from string_api
- $t_string = call_user_func_array( 'sprintf', array_merge( array( $t_error ), $g_error_parameters, $t_padding ) );
+ $t_string = vsprintf ( $t_error, array_merge( $g_error_parameters, $t_padding ) );
return preg_replace( "/&(#[0-9]+|[a-z]+);/i", "&$1;", @htmlspecialchars( $t_string, ENT_COMPAT, 'UTF-8' ) );
}

0 comments on commit 6986a73

Please sign in to comment.