#77 Make ADP parser in 4.x backward compatible with 3.5.x

open
nobody
None
5
2004-09-19
2004-09-19
Jeremy Collins
No

The new default ADP fancy parser in AOLserver 4.x gives <% %>
tags precedence over registered tags. In rare instances this
behavior causes incompatibilities with ADPs written for AS 3.5.x,
so it would be nice if the old style was still supported.

Example of incompatibility with AS 3.5.x:

<% set foo 1 %>
<if foo eq 1>
<% ns_adp_puts bar %>
</if>

Output is:

<if foo eq 1>
bar

</if>

Clearly this fails to parse the registered tags.

The attached patch adds the 'backwardcompatible' ns_param to the
adp section of the configuration file. Setting this to true will revert
the adp parser back to AS 3.5.x style parsing.

Or even better would be to just drop the new style parsing and
leave it the way 3.5.x was! :)

Discussion