Hello,
So a user has submitted a bug on the fedora bugzilla, one part of the
bug includes a patch that he states is needed to get dspam to work with
postgres. I've checked the 3.9 sources and it seems it hasn't been
applied, but I'm not sure what it does/needs to do. Is anyone running
dspam with 3.9?
Also @devs do you see what this patch is meant to fix?
--
Nathanael
diff -ur dspam-3.8.1/src/pgsql_drv.c dspam-3.8.1/src/pgsql_drv.c
--- dspam-3.9.0/src/pgsql_drv.c 2009-09-06 10:41:34.395028365 -0600
+++ src/pgsql_drv.c 2009-09-10 12:53:49.443029144 -0600
@@ -2574,8 +2574,8 @@
uid = 0; /* Default Preferences */
}
- m1 = PQescapeBytea((unsigned char *) preference, strlen(preference),
&length);
- m2 = PQescapeBytea((unsigned char *) value, strlen(value), &length);
+ m1 = PQescapeByteaConn(s->dbh, (unsigned char *) preference,
strlen(preference), &length);
+ m2 = PQescapeByteaConn(s->dbh, (unsigned char *) value, strlen(value),
&length);
snprintf(query, sizeof(query), "DELETE FROM dspam_preferences"
" WHERE uid=%d AND preference='%s'", (int) uid, m1);
@@ -2655,7 +2655,7 @@
uid = 0; /* Default Preferences */
}
- m1 = PQescapeBytea((unsigned char *) preference, strlen(preference),
&length);
+ m1 = PQescapeByteaConn(s->dbh, (unsigned char *) preference,
strlen(preference), &length);
snprintf(query, sizeof(query), "DELETE FROM dspam_preferences"
" WHERE uid=%d AND preference='%s'", (int) uid, m1);
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Dspam-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspam-user