You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Ulrich Gemkow <ge...@ind.uni-stuttgart.de> on 2000/07/09 10:49:24 UTC

mod_include/6288: #set and #echo don't interpolate variable names (see PR 2832)

>Number:         6288
>Category:       mod_include
>Synopsis:       #set and #echo don't interpolate variable names (see PR 2832)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    apache
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   apache
>Arrival-Date:   Sun Jul 09 01:50:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     gemkow@ind.uni-stuttgart.de
>Release:        1.3 and 2.0a
>Organization:
apache
>Environment:
all
>Description:
As already suggested in PR 2832 (another author), it would be a very useful
feature if it would be possible to do things as following:

 <!--#set var="var_name" value="x" -->
 <!--#set var="$var_name" value="2" -->

(same for echo, Example taken from PR 2832)

 <!--#echo var="$var_name" -->

The answer for PR 2832 was: "Send a mail, if you really want this to
be added" and I dont know, whether it was considererd to add.

This would be a very useful feature when also working with mod_rewrite:

Scenario: mod_rewrite sets an env-var which is then used in shtml-files
to print the content of these vars indirectly.

This allows an additional level of indirection which opens a whole new
class of flexiblity.

I am using this for several time (I patched Apache) and saved a lot of work
and time.
>How-To-Repeat:
see above
>Fix:
A patch was already included in PR 2832 (for 1.2).

I can provide another patch for 1.3.12 and/or 2.0aXX, if you consider to add
this feature. The patch is simple, has no side effects and is obviously correct.
>Release-Note:
>Audit-Trail:
>Unformatted:
 [In order for any reply to be added to the PR database, you need]
 [to include <ap...@Apache.Org> in the Cc line and make sure the]
 [subject line starts with the report component and number, with ]
 [or without any 'Re:' prefixes (such as "general/1098:" or      ]
 ["Re: general/1098:").  If the subject doesn't match this       ]
 [pattern, your message will be misfiled and ignored.  The       ]
 ["apbugs" address is not added to the Cc line of messages from  ]
 [the database automatically because of the potential for mail   ]
 [loops.  If you do not include this Cc, your reply may be ig-   ]
 [nored unless you are responding to an explicit request from a  ]
 [developer.  Reply only with text; DO NOT SEND ATTACHMENTS!     ]