forked from github/server
bug 2673 ignore commands that have fewer than 2 characters.
This commit is contained in:
parent
f9c3f74117
commit
276db404ba
|
@ -61,7 +61,7 @@ keyword_t get_keyword(const char *s, const struct locale *lang) {
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
char *str = transliterate(buffer, sizeof(buffer) - sizeof(int), s);
|
char *str = transliterate(buffer, sizeof(buffer) - sizeof(int), s);
|
||||||
|
|
||||||
if (str) {
|
if (str && str[0] && str[1]) {
|
||||||
int i;
|
int i;
|
||||||
void *match;
|
void *match;
|
||||||
void **tokens = get_translations(lang, UT_KEYWORDS);
|
void **tokens = get_translations(lang, UT_KEYWORDS);
|
||||||
|
|
|
@ -67,7 +67,7 @@ param_t findparam(const char *s, const struct locale * lang)
|
||||||
char buffer[64];
|
char buffer[64];
|
||||||
char * str = s ? transliterate(buffer, sizeof(buffer) - sizeof(int), s) : 0;
|
char * str = s ? transliterate(buffer, sizeof(buffer) - sizeof(int), s) : 0;
|
||||||
|
|
||||||
if (str && *str) {
|
if (str && str[0] && str[1]) {
|
||||||
int i;
|
int i;
|
||||||
void * match;
|
void * match;
|
||||||
void **tokens = get_translations(lang, UT_PARAMS);
|
void **tokens = get_translations(lang, UT_PARAMS);
|
||||||
|
|
Loading…
Reference in New Issue