From 31696b407426b801ec209006db6696d347393082 Mon Sep 17 00:00:00 2001 From: Amire80 Date: Fri, 23 Mar 2018 20:44:20 +0300 Subject: [PATCH] Add maxlength to the languagefilter input This input field is only for language names. There's no reason for it to have something longer. Looking at the logs of searches, people sometimes write very long things there: gibberish, URLs, inappropriate search strings, mistaken pastes from other places, and so on. So it should be limited by maxlength. It's practically never useful after 20 characters, but setting at 40 just to be on the safe side. The longest language name in langdb is 34. --- src/jquery.uls.core.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/jquery.uls.core.js b/src/jquery.uls.core.js index 6bd01ea..28067bb 100644 --- a/src/jquery.uls.core.js +++ b/src/jquery.uls.core.js @@ -34,6 +34,7 @@ \ \