$params[$type]['width'] = intval( $m[1] );
$params[$type]['height'] = intval( $m[2] );
$validated = true;
- } elseif ( is_numeric( $value ) ) {
+ } elseif ( is_numeric( trim( $value ) ) ) {
$params[$type]['width'] = intval( $value );
$validated = true;
} // else no validation -- bug 13436
$validated = $handler->validateParam( $paramName, $value );
} else {
# Validate internal parameters
- $validated = ( $value === false || is_numeric( $value ) );
+ $validated = ( $value === false || is_numeric( trim( $value ) ) );
}
if ( $validated ) {