forward porting fixUrl bugfix and test

This commit is contained in:
Colin Kuskie 2007-12-11 16:40:05 +00:00
parent f966bc572a
commit ac6651cdcd
4 changed files with 29 additions and 3 deletions

View file

@ -564,7 +564,7 @@ sub fixUrl {
# urls can't be longer than 250 characters
if (length($url) > 250) {
$url = substr($url,220);
$url = substr($url,0,220);
}
# remove multiple extensions from the url if there are some