<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/15559" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2008-03-28T12:25:29-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/15559</id>

		<entry>
		<author><name><![CDATA[lenore]]></name></author>
		<updated>2008-03-28T12:25:29-04:00</updated>

		<published>2008-03-28T12:25:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=82055#p82055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=82055#p82055"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=82055#p82055"><![CDATA[
<blockquote class="uncited"><div>A good general security rule, when dealing with suspect input, is to have a list of allowed chars (A-Za-z0-9, etc), rather than a list of disallowed chars (more likely to overlook some chars when trying to disallow.) The allowed list would likely be shorter as well.</div></blockquote>good point, thankyou<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9783">lenore</a> — Fri Mar 28, 2008 12:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2008-03-23T02:25:46-04:00</updated>

		<published>2008-03-23T02:25:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81977#p81977</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81977#p81977"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81977#p81977"><![CDATA[
A good general security rule, when dealing with suspect input, is to have a list of allowed chars (A-Za-z0-9, etc), rather than a list of disallowed chars (more likely to overlook some chars when trying to disallow.) The allowed list would likely be shorter as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sun Mar 23, 2008 2:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-03-23T02:01:22-04:00</updated>

		<published>2008-03-23T02:01:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81976#p81976</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81976#p81976"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81976#p81976"><![CDATA[
If you use mysqltcl then mysql::escape should work fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sun Mar 23, 2008 2:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lenore]]></name></author>
		<updated>2008-03-22T22:28:25-04:00</updated>

		<published>2008-03-22T22:28:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81972#p81972</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81972#p81972"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81972#p81972"><![CDATA[
thanks chaps <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> (goes to post the next question)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9783">lenore</a> — Sat Mar 22, 2008 10:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2008-03-22T17:52:18-04:00</updated>

		<published>2008-03-22T17:52:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81964#p81964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81964#p81964"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81964#p81964"><![CDATA[
Actually that'll cause an error, use<div class="codebox"><p>Code: </p><pre><code>set washed [string map {\" \\\" ' \\' ; \\;} $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Mar 22, 2008 5:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-03-22T14:09:07-04:00</updated>

		<published>2008-03-22T14:09:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81962#p81962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81962#p81962"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81962#p81962"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set washed [string map {" \" ' \' ; \;} $text]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Mar 22, 2008 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[lenore]]></name></author>
		<updated>2008-03-22T22:29:20-04:00</updated>

		<published>2008-03-22T13:20:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=81961#p81961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=81961#p81961"/>
		<title type="html"><![CDATA[[solved-ish] prevent sql injection?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=81961#p81961"><![CDATA[
does tcl have a nice function for preventing sql injection? a wash function maybe? or am i just gonna have to regexp for ' " ; etc and escape them?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9783">lenore</a> — Sat Mar 22, 2008 1:20 pm</p><hr />
]]></content>
	</entry>
	</feed>
