<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: More URI-Related UDFs</title>
	<atom:link href="http://blog.stevenlevithan.com/archives/more-uri-udfs/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.stevenlevithan.com/archives/more-uri-udfs</link>
	<description>A JavaScript and regular expression centric blog</description>
	<lastBuildDate>Tue, 07 Sep 2010 15:50:02 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt Brundage</title>
		<link>http://blog.stevenlevithan.com/archives/more-uri-udfs/comment-page-1#comment-51797</link>
		<dc:creator>Matt Brundage</dc:creator>
		<pubDate>Wed, 28 Apr 2010 13:55:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=11#comment-51797</guid>
		<description>Your solution is applicable in the vast majority of cases. I was trying to account for ampersands in the query string that were already part of an encode -- for instance &quot;&lt;code&gt;&szlig;&lt;/code&gt;&quot; But then again, such ampersands would ultimately be interpreted as normal query string delimiters -- if they hadn&#039;t already been URL-encoded as &quot;&lt;code&gt;%26&lt;/code&gt;&quot;.</description>
		<content:encoded><![CDATA[<p>Your solution is applicable in the vast majority of cases. I was trying to account for ampersands in the query string that were already part of an encode &#8212; for instance &#8220;<code>&amp;szlig;</code>&#8221; But then again, such ampersands would ultimately be interpreted as normal query string delimiters &#8212; if they hadn&#8217;t already been URL-encoded as &#8220;<code>%26</code>&#8220;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steven Levithan</title>
		<link>http://blog.stevenlevithan.com/archives/more-uri-udfs/comment-page-1#comment-51771</link>
		<dc:creator>Steven Levithan</dc:creator>
		<pubDate>Wed, 28 Apr 2010 07:07:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=11#comment-51771</guid>
		<description>Hey Matt!

Since CGI.QUERY_STRING is used in non-HTML-rendering contexts, it would be inappropriate for CF to automatically use HTML entities in its value. If you want to use the value in valid HTML, yes, the ampersands need to be replaced with &quot;&amp;&quot;, but I&#039;d recommend something along the lines of the more straightforward &lt;code&gt;&lt;cfif len(cgi.query_string)&gt;&lt;cfset queryHtml = &quot;?&quot; &amp; replace(cgi.query_string, &quot;&amp;&quot;, &quot;&amp;&quot;, &quot;all&quot;) /&gt;&lt;/cfif&gt;&lt;/code&gt;. Excluding some ampersands from HTML encoding as is done in your above regex seems incorrect here, unless I&#039;m missing something.</description>
		<content:encoded><![CDATA[<p>Hey Matt!</p>
<p>Since CGI.QUERY_STRING is used in non-HTML-rendering contexts, it would be inappropriate for CF to automatically use HTML entities in its value. If you want to use the value in valid HTML, yes, the ampersands need to be replaced with &#8220;&amp;amp;&#8221;, but I&#8217;d recommend something along the lines of the more straightforward <code>&lt;cfif len(cgi.query_string)&gt;&lt;cfset queryHtml = "?" &amp; replace(cgi.query_string, "&amp;", "&amp;amp;", "all") /&gt;&lt;/cfif&gt;</code>. Excluding some ampersands from HTML encoding as is done in your above regex seems incorrect here, unless I&#8217;m missing something.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Brundage</title>
		<link>http://blog.stevenlevithan.com/archives/more-uri-udfs/comment-page-1#comment-51717</link>
		<dc:creator>Matt Brundage</dc:creator>
		<pubDate>Tue, 27 Apr 2010 16:31:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.stevenlevithan.com/?p=11#comment-51717</guid>
		<description>Sadly, CGI.QUERY_STRING doesn&#039;t escape its ampersands, so we must add them back in:
&lt;cfset pageQuery = reReplace(&quot;?&quot; &amp; reReplace(CGI.QUERY_STRING, &quot;&amp;(?:(?=\s)&#124;(?!(?:\w{2,7}&#124;##\d{2,5});))&quot;, &quot;&amp;&quot;, &quot;ALL&quot;), &quot;\?$&quot;, &quot;&quot;) /&gt;

See line 15.</description>
		<content:encoded><![CDATA[<p>Sadly, CGI.QUERY_STRING doesn&#8217;t escape its ampersands, so we must add them back in:<br />
&lt;cfset pageQuery = reReplace(&#8220;?&#8221; &amp; reReplace(CGI.QUERY_STRING, &#8220;&amp;(?:(?=\s)|(?!(?:\w{2,7}|##\d{2,5});))&#8221;, &#8220;&amp;amp;&#8221;, &#8220;ALL&#8221;), &#8220;\?$&#8221;, &#8220;&#8221;) /&gt;</p>
<p>See line 15.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
