-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephen Collins wrote:
I have a couple of extensions I'm using (rss and a
custom one) where
I'm getting the following error:
Fatal error: Call to undefined function wfStrencode() in /home/3698/
domains/swc/html/smsp1/extensions/rss.php on line 206
This is using MediaWiki 1.9 from SVN. Looks like it may be broken
somewhere (or, alternatively and more likely, I've done something
stupid).
wfStrencode is waaay ancient and finally got removed. One problem with
it is that as a global function it wouldn't match with the actual
database class in use, and thus may perform incorrect escaping.
Use the database object's addQuotes() method if you must construct SQL
manually. This performs both quoting and escaping appropriate to the
database connection.
eg: 'blah blah page_title=' . $dbr->addQuotes( $row->page_title )
- -- brion vibber (brion @
pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFFh5pRwRnhpk1wk44RAr4NAKCneXuWIjgpvH+1kvX36I9KR5dp/ACg3Lro
04i0byL3EnA3vfOnfEat/5g=
=85MV
-----END PGP SIGNATURE-----