Uppercase / lowercase in Linktrimmer
Posted: Fri May 06, 2011 3:48 pm
Hi,
Just stumbled upon two major bugs in the linktrimmer plugin:
- Short url hashes are created in lower and uppercase... sadly at least my browser / apache does not differentiate and there is probably an rfc prohibiting that... I fixed that and changed the base62 to only include lower case letters...
- A short url is not only created on demand, but every time someone visits the page. And as my database shows also _double links are created_ (and I have not found out why, it has to be related to the sql query in line 128, that it does not find a preexisting value).
But the main question is: why bother and create a shortlink for every article read??
You can find the patch here (http://dl.dropbox.com/u/285107/linktrimmer2.patch), please have a look!
Daniel
Just stumbled upon two major bugs in the linktrimmer plugin:
- Short url hashes are created in lower and uppercase... sadly at least my browser / apache does not differentiate and there is probably an rfc prohibiting that... I fixed that and changed the base62 to only include lower case letters...
- A short url is not only created on demand, but every time someone visits the page. And as my database shows also _double links are created_ (and I have not found out why, it has to be related to the sql query in line 128, that it does not find a preexisting value).
But the main question is: why bother and create a shortlink for every article read??
You can find the patch here (http://dl.dropbox.com/u/285107/linktrimmer2.patch), please have a look!
Daniel