The url field in the follow_links db table is varchar(255), but the edit form allows formapi to set its default maxlength of 128.

I've just had a requirement to use a URL which was > 128 chars in length, and couldn't as a result of this formapi default.

Patch attached to explicitly set the #maxlength to match the db table schema.

There are other fields in the form where the situation is the same, but I would have have thought that URL is the most likely to cause users problems.

Comments

Chris Charlton’s picture

Status: Active » Needs review

Agreed. The patch may be slightly old but I was able to get it to apply.

stoob’s picture

StatusFileSize
new350 bytes

This patch is for the D7 version.

It makes since since the dB field is already 255, that input field should be 255. This way we can use longer links and functionality like this: https://dev.twitter.com/docs/tweet-button

q0rban’s picture

Version: 6.x-1.x-dev » 7.x-2.x-dev
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

spelling