Bug 1059788 - Limit search term lengths to 100 characters.

I have no confidence in this patch, but I think this might possibly work.
Looks good :-)
Don't suppose you could add a comment explaining why? (copying the TBPL comment wfm)