Pipe char in token value

Tod

Verified User
Joined
Jun 12, 2011
Messages
10
Hi there,

is it possible to add the pipe charecter (eg. |) in the value of the custom tokens?

I would like to add country codes to allow/deny based on country codes in a custom vhost template.
In the custom template I'd liket to add one defult country code, then the others from the custom token (got maxmind module and docs from here: https://github.com/maxmind/mod_maxminddb).

SetEnvIf MM_COUNTRY_CODE ^(US||COUNTRY|) AllowCountry

This part is ok, as far I add only one country code to the custom token, eg:

|?COUNTRY=GB|

But this is not working:
|?COUNTRY="GB|FR|CA"|

I tried to escape the pipe char with backslash, or with/without quotes, no luck so far.

Any advice would be appreciated.

T.
 
Back
Top