Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 16th, 2002, 07:22 PM
xerxexrex xerxexrex is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2002
Posts: 2 xerxexrex User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
XSSI and regexps

Hi. I'm trying to use XSSI to include alternate content based on the query string (so that I have one .shtml file and many .html fragments that can be included. Here's the relevant code.

<!--#if expr="\"$QUERY_STRING\" = /[A-Za-z0-9_]+\\.html/" -->
<!--#include virtual="$QUERY_STRING" -->
<!--#else -->
The request was badly formed. Please try again.
<!--#endif -->

My problem is with the if statement that checks $QUERY_STRING to rule out strange symbols in the included file (as well as files with a .shtml extension). As it is, the expr still evaluates to true even if I use a query string like "&;.html". Are bracket expressions such as this supported in XSSI? I would think that they would. I get similar results if I use \w+ (actually \\w+ here) or even [[:alnum:]]+. Either something is not supported, or there is a syntax error somewhere, or I have a conceptual error (the latter two are quite possible )

Related quick question: what are the reserved symbols in a quote-enclosed expression like in the if statement? Just \ and "?

Thanks!

OS: FBSD 4.4-STABLE
Apache ver: not sure...where can I find out?

Last edited by xerxexrex : February 16th, 2002 at 07:29 PM.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > XSSI and regexps


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway
Stay green...Green IT