Permalink
Browse files

[protector] fix numeric judgement of prefix manager

  • Loading branch information...
nao-pon committed Oct 6, 2017
1 parent e7273b1 commit 8cecd90d3d8eeb918a64c446fd2d1e8ce0e16aae
Showing with 1 addition and 1 deletion.
  1. +1 −1 xoops_trust_path/modules/protector/admin/prefix_manager.php
@@ -121,7 +121,7 @@
$values[] = 'NULL';
// a number
// timestamp is numeric on some MySQL 4.1
} elseif (is_numeric($row[$j]) && $fields_meta->type != 'timestamp') {
} elseif (preg_match('/^[0-9.]+$/', $row[$j]) && $fields_meta->type != 'timestamp') {
$values[] = $row[$j];
// a binary field
// Note: with mysqli, under MySQL 4.1.3, we get the flag

0 comments on commit 8cecd90

Please sign in to comment.