Skip to content

Commit 8278d08

Browse files
committed
Replace is_numeric with ctype_digit to escape strings with numbers and e character
1 parent b7593cf commit 8278d08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Export.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ protected function escape_values( PDO $pdo, $values ) {
239239
foreach ( $values as $value ) {
240240
if ( is_null( $value ) ) {
241241
$escaped_values[] = 'NULL';
242-
} elseif ( is_numeric( $value ) ) {
242+
} elseif ( ctype_digit( $value ) ) {
243243
$escaped_values[] = $value;
244244
} else {
245245
// Quote the values and escape encode the newlines so the insert statement appears on a single line.

0 commit comments

Comments
 (0)