Wrap mysql_real_escape_string() in a function
commit10b6a8fff7e6d407421c74889455b969be7f867f
authorLukas Fleischer <archlinux@cryptocrack.de>
Thu, 20 Oct 2011 06:15:02 +0000 (20 08:15 +0200)
committerLukas Fleischer <archlinux@cryptocrack.de>
Tue, 25 Oct 2011 07:25:30 +0000 (25 09:25 +0200)
tree7865ce99ce1d45e7261f32c539ed42ab7f265823
parente1687f18302a49b5d1b57aceb703fffe09c76375
Wrap mysql_real_escape_string() in a function

Wrap mysql_real_escape_string() in a wrapper function db_escape_string()
to ease porting to other databases, and as another step to pulling more
of the database code into a central location.

This is a rebased version of a patch by elij submitted about half a year
ago.

Thanks-to: elij <elij.mx@gmail.com>
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Conflicts:

web/lib/aur.inc.php
12 files changed:
web/html/account.php
web/html/addvote.php
web/html/logout.php
web/html/passreset.php
web/html/pkgsubmit.php
web/html/voters.php
web/lib/acctfuncs.inc.php
web/lib/aur.inc.php
web/lib/aurjson.class.php
web/lib/pkgfuncs.inc.php
web/lib/stats.inc.php
web/template/pkg_comment_form.php