httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 48520] mod_substitute only process the first match
Date Fri, 22 Jan 2010 10:18:42 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=48520

Pablo Martinez Schroder <pablo@docecosas.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW

--- Comment #4 from Pablo Martinez Schroder <pablo@docecosas.com> 2010-01-22 02:18:41
UTC ---
Adding the supplied test HTML to the docroot directory and this configuration
to the default httpd.conf in httpd-2.2.14 you should expect to see all the
links pointing to /scores/ but only the first one gets substituted.

<Location /test_sub/>
  AddOutputFilterByType SUBSTITUTE text/html
  Substitute "s|http://.*/merge/tsnform.aspx\?c=client-.*?&(.*)|/scores/?$1|i"
  Substitute "s|/merge/tsnform.aspx\?c=client-.*?&(.*)|/scores/?$1|i"
  Substitute "s|/merge/tsnform.aspx\?c=sportsnetwork&(.*)|/scores/?$1|i"
  Substitute
"s|http://images.sportsnetwork.com/(.*)|/scores/resources/images/$1|i"
  Substitute "s|http://.*/fury/(.*)|/scores/resources/fury/$1|i"
  #Substitute "s|/xml/(.*)|/scores/resources/xml/$1|i"
  Substitute "s|/images/(.*)|/scores/resources/images/$1|i"
  RequestHeader   unset   Accept-Encoding

</Location>

Applying the suggested patch or using httpd-2.2.11 shows the expected
behaviour: all the links are substituted.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message