X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=db.php;h=3e4f725c30758f0027a70afbf6dd6c15c06adff8;hb=21c47e88810e97fe5b727c9c2689f64533bf6452;hp=065ac0ea11f69b1b2ccf264843fbcf72cc1c6dcd;hpb=d03e8554ee3e80a6333126e67dd4c20f54ec700e;p=wfpl.git diff --git a/db.php b/db.php index 065ac0e..3e4f725 100644 --- a/db.php +++ b/db.php @@ -130,6 +130,8 @@ function _db_printf($str, $args) { if($chr == '"') { $out .= '"' . enc_sql(array_pop($args)) . '"'; + } elseif($chr == 's') { + $out .= enc_sql(array_pop($args)); } elseif($chr == 'i') { $int = format_int(array_pop($args)); if($int == '') $int = '0';