<?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: Mongo Beauty #1</title>
	<atom:link href="http://mepatterson.net/2010/02/mongo-beauty-1/feed/" rel="self" type="application/rss+xml" />
	<link>http://mepatterson.net/2010/02/mongo-beauty-1/</link>
	<description>bestselling author of Devil&#039;s Hand, a supernatural thriller; writer of fictions and web software</description>
	<lastBuildDate>Sun, 29 Jan 2012 11:26:19 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: andrew</title>
		<link>http://mepatterson.net/2010/02/mongo-beauty-1/#comment-265</link>
		<dc:creator>andrew</dc:creator>
		<pubDate>Sat, 04 Sep 2010 22:48:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.digimonkey.com/?p=64#comment-265</guid>
		<description>Be sure to sanitize the regular expression, both for accuracy and security.

http://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS

I&#039;d suggest something like:

User.all({ :name =&gt; /^#{Regexp.escape(query)}/i })</description>
		<content:encoded><![CDATA[<p>Be sure to sanitize the regular expression, both for accuracy and security.</p>
<p><a href="http://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS" rel="nofollow">http://www.owasp.org/index.php/Regular_expression_Denial_of_Service_-_ReDoS</a></p>
<p>I&#8217;d suggest something like:</p>
<p>User.all({ :name =&gt; /^#{Regexp.escape(query)}/i })</p>
]]></content:encoded>
	</item>
</channel>
</rss>

