Commit 59504247 authored by Brendan Cully's avatar Brendan Cully

Use isalnum instead of isalpha when parsing unbraced environment variable

names, per tamo's suggestion. Closes #2022.
parent 6308d15e
......@@ -272,7 +272,7 @@ int mutt_extract_token (BUFFER *dest, BUFFER *tok, int flags)
}
else
{
for (pc = tok->dptr; isalpha ((unsigned char) *pc) || *pc == '_'; pc++)
for (pc = tok->dptr; isalnum ((unsigned char) *pc) || *pc == '_'; pc++)
;
var = mutt_substrdup (tok->dptr, pc);
tok->dptr = pc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment