[Mod_log_sql] Segfault in 1.99 with CGI Args
Douglas E. Warner
silfreed at silfreed.net
Wed Aug 18 12:56:11 EST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wednesday 18 August 2004 10:37, Douglas E. Warner wrote:
> Trying to help track down what's going on, I ran my config (which I'll
> include below) with 'LogLevel debug' in my httpd.conf. Here's the
> pertinent info:
I think I tracked down the problem; actually, it seemed like a two-part
problem:
1) the mysql escape function wasn't matching empty strings by the first 'if'
statement, only null strings.
2) when a null string was matched my the mysql escape function, it returned a
literal NULL instead of the string 'NULL' which was needed in the insert
statement.
I've attached my patch; feel free to modify it for your uses, it seems to work
for me.
- -Doug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFBI5g7JV36su0A0xIRAqmZAKDKbr+/trgdM8ZjA+Uqdqv4kzXZowCg4hK1
L62P0AK+9thKMtJOFFCR7Ug=
=vJMd
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mod_log_sql-1.99-mysql-escape.diff
Type: text/x-diff
Size: 546 bytes
Desc: not available
Url : http://lists.outoforder.cc/pipermail/mod_log_sql/attachments/20040818/01f37734/attachment.bin
More information about the Mod_log_sql
mailing list