<?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: Users are Evil (or, How to Protect Yourself From SQL Injection)</title>
	<atom:link href="http://www.vbmysql.com/articles/security/users-are-evil-or-how-to-protect-yourself-from-sql-injection/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vbmysql.com</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Fri, 07 Jan 2011 12:23:44 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Spencer Ruport</title>
		<link>http://www.vbmysql.com/articles/security/users-are-evil-or-how-to-protect-yourself-from-sql-injection#comment-1597</link>
		<dc:creator>Spencer Ruport</dc:creator>
		<pubDate>Thu, 26 Apr 2007 18:48:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/users-are-evil-or-how-to-protect-yourself-from-sql-injection/#comment-1597</guid>
		<description>Good advice. For most applications I&#039;ve found that the following two functions when applied to any user inputs protect against any sort of SQL injection. iP is used for input that&#039;s supposed to be numerical and sP is used for input thats supposed to be text.

Public Function iP(val As Variant) As Integer
    On Error Resume Next
    iP = 0
    iP = CInt(val) * 1
    If IsNull(iP) Then
        iP = 0
    End If
End Function
Public Function sP(val As Variant) As String
    sP = Replace(CStr(val), &quot;&#039;&quot;, &quot;&#039;&#039;&quot;)
End Function</description>
		<content:encoded><![CDATA[<p>Good advice. For most applications I&#8217;ve found that the following two functions when applied to any user inputs protect against any sort of SQL injection. iP is used for input that&#8217;s supposed to be numerical and sP is used for input thats supposed to be text.</p>
<p>Public Function iP(val As Variant) As Integer<br />
    On Error Resume Next<br />
    iP = 0<br />
    iP = CInt(val) * 1<br />
    If IsNull(iP) Then<br />
        iP = 0<br />
    End If<br />
End Function<br />
Public Function sP(val As Variant) As String<br />
    sP = Replace(CStr(val), &#8220;&#8216;&#8221;, &#8220;&#8221;&#8221;)<br />
End Function</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi Magod</title>
		<link>http://www.vbmysql.com/articles/security/users-are-evil-or-how-to-protect-yourself-from-sql-injection#comment-1596</link>
		<dc:creator>Ravi Magod</dc:creator>
		<pubDate>Wed, 17 Jan 2007 11:42:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/users-are-evil-or-how-to-protect-yourself-from-sql-injection/#comment-1596</guid>
		<description>It is sort of scaring to know how evil people can make life hell for others.

Thanks, &quot;To be fore warned is to be fore armed&quot;</description>
		<content:encoded><![CDATA[<p>It is sort of scaring to know how evil people can make life hell for others.</p>
<p>Thanks, &#8220;To be fore warned is to be fore armed&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blake</title>
		<link>http://www.vbmysql.com/articles/security/users-are-evil-or-how-to-protect-yourself-from-sql-injection#comment-1595</link>
		<dc:creator>Blake</dc:creator>
		<pubDate>Sat, 09 Dec 2006 17:33:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.vbmysql.com/users-are-evil-or-how-to-protect-yourself-from-sql-injection/#comment-1595</guid>
		<description>I had heard of SQL injection, but hadn&#039;t had time to look too deeply into it.

Thanks for the heads-up and the examples.  I&#039;m sure there is a lot more to having a &#039;completely secure&#039; (as though those two words can really be put together) site, but every little bit helps.</description>
		<content:encoded><![CDATA[<p>I had heard of SQL injection, but hadn&#8217;t had time to look too deeply into it.</p>
<p>Thanks for the heads-up and the examples.  I&#8217;m sure there is a lot more to having a &#8216;completely secure&#8217; (as though those two words can really be put together) site, but every little bit helps.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

