23 Aug
2007
23 Aug
'07
5:49 a.m.
Arran Cudbard-Bell wrote:
if(%{User-Name} =~ /%{Calling-Station-ID}/i){
Doesn't expand %{Calling-Station-ID} , but thats expected.
It could... edit src/main/evaluate.c, look in function getregex(), and change the final "return T_BARE_WORD" to "return T_DOUBLE_QUOTED_STRING" After all, if you can use variables in Perl's regular expressions, why not here?
Any chance of expanding regex strings before passing them to the regex parser ?
A one-line patch. It should probably go in, because it's just too useful to leave out. Alan DeKok.