-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Travis Derouin wrote:
Is there any way we can tweak the Spam blacklist
filter to block images that
match blacklist list entries while $wgAllowExternalImages is set?
Right now when $wgAllowExternalImages is true, the parser is converting the
links in internalParse to images, which is expected, but if those images
match something in the blacklist they won't be blocked. These images also
don't show up in out->getImages.
If we could check the spam blacklist against something a little less
processed than external links, it might work.
Probably the proper way to do it is have the parser add the external
images to the list of external links.
Is there any reason why the
blacklist isn't just compared to the raw Mediawiki text?
Templates, funky formatting, etc etc.
This way we guarantee that the links that appear are the ones that are
checked.
- -- brion vibber (brion @
pobox.com)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (Darwin)
Comment: Using GnuPG with Mozilla -
http://enigmail.mozdev.org
iD8DBQFFdcKywRnhpk1wk44RAk5EAJ9STJ9st3/+r9Yevkvr1wphD6CJbACeJjLx
omsR25OZXnA+F4FHgVrrAI0=
=VeL1
-----END PGP SIGNATURE-----