开发者

What is dab_db?

a1cms, an obscure CM开发者_如何转开发S written in PHP, uses a function dab_db in a few modules, but never defines it (I checked it with grep). The invocation goes something like this:

$id = (int)$_POST['id'];
$f = $_POST['f'];
$f['name'] = dab_db($f['name']);
$f['about'] = dab_db($f['about']);
$f['date'] = dab_db($f['date']);
$f['showing'] = (isset($f['showing'])) ? 1 : 0;

Does anybody know what is this function or have any ideas on what it might do? Any idea is good, in the worst case I'll attempt to reverse engineer it.

UPD: I have a feeling that it does input sanitation. Does it fit that pattern?


It isn't a default PHP function (which could be guessed from the ~75 Google hits), so it must be defined somewhere. Does the CMS contain obfuscated (Zend, ionCube) code which could contain the function dab_db?

You could throw in a few types of input and see what happens, it looks like some kind of escape function which you could replace by mysql_real_escape_string().

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜