Hello all, I suspect that there is a small bug in the Kannel WML compiler. The bug is related to variable substitution as specified in http://www.openmobilealliance.org/tech/affiliates/wap/wap-191-wml-20000219-a .pdf . Section 10.3.1 Variable Substitution says:
"If no conversion is specified, the variable is substituted using the conversion format appropriate for the context. All attributes defined as %HREF; default to escape conversion, elsewhere no conversion is done. Specifying the noesc conversion disables context sensitive escaping of a variable." The WML binary standard does not provide a token for a variable substitution without conversion (the defined tokens are EXT_I_0 ..EXT_I_2, EXT_T_0..EXT_T_2), that's why the WML compiler has to choose the correct one. Currently the WML compiler unconditionaly uses the "noesc" conversion for all contexts, even in the href attribute: http://www.kannel.org/cgi-bin/lxr/source/gateway/gw/wml_compiler.c#L1107 Unfortunately the function "check_variable_syntax" does not even know the context. Any suggestions? Regards J�rg
