On Tue, Jan 06, 2004 at 11:36:20AM +0530, Arvind Narayanan wrote:
On Tue, Jan 06, 2004 at 06:20:26AM +0000, Timwi wrote:
Thomas R. Koll wrote:
On Sun, Jan 04, 2004 at 03:28:07AM -0000, Allan Crossman wrote:
Would it be possible to set it so that uploads are never placed in a path called /ad/ (as they sometimes are at the moment) - I think it's pretty common for software to assume that any such image is an advert and not display it. Certainly Norton Personal Firewall's ad blocking does this...
It's not our fault if Norton PF is that stupid.
No, it's not ... but if it isn't too difficult to change this, then I would welcome it.
It wouldn't be difficult to change it, but it would be an ugly hack. The directory name is the first 2 chars of the md5sum of the name of the image. So it would mean either using a different hashing method, affecting *all* images, or putting special case checks in the code.
The directory is /upload/a/ad/, the first letter is used twice, once for /a/ and once for /ad/. It's not hard and not ugly to change this to /a/d/. Then go to /upload/ and do
for a in ?; do (cd $a; for b in ??; do ln -s $b `echo $b|cut -c2`; done); done
symlinks instead of move since page cache still has links to /a/ad/
Regards,
JeLuF