<?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: Creating People friendly URLs using PHP and MYSQL</title>
	<atom:link href="http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/</link>
	<description>Manchester web designer Phil Thompson</description>
	<pubDate>Wed, 07 Jan 2009 04:16:04 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/comment-page-1/#comment-59004</link>
		<dc:creator>phil</dc:creator>
		<pubDate>Sat, 19 Jan 2008 17:15:39 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/#comment-59004</guid>
		<description>Quite right marchaos, the examples above shouldn't be copied and pasted as they are vulnerable to this kind of hack.

A better idea is to escape your value eg

SELECT * FROM articles WHERE title_html = ' escape($_GET['title'])';

where escape() would contain all your data cleansing functions of choice eg addslashes() or mysql_real_escape_string()</description>
		<content:encoded><![CDATA[<p>Quite right marchaos, the examples above shouldn&#8217;t be copied and pasted as they are vulnerable to this kind of hack.</p>
<p>A better idea is to escape your value eg</p>
<p>SELECT * FROM articles WHERE title_html = &#8216; escape($_GET['title'])&#8217;;</p>
<p>where escape() would contain all your data cleansing functions of choice eg addslashes() or mysql_real_escape_string()</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: marchaos</title>
		<link>http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/comment-page-1/#comment-58985</link>
		<dc:creator>marchaos</dc:creator>
		<pubDate>Sat, 19 Jan 2008 15:01:16 +0000</pubDate>
		<guid isPermaLink="false">http://imgiseverything.co.uk/2005/10/12/creating-people-friendly-urls-using-php-and-mysql/#comment-58985</guid>
		<description>$_GET['title'] = '""; drop table articles';

SELECT * FROM articles WHERE title_html = $_GET['title'];

nuff said.</description>
		<content:encoded><![CDATA[<p>$_GET['title'] = &#8216;&#8221;"; drop table articles&#8217;;</p>
<p>SELECT * FROM articles WHERE title_html = $_GET['title'];</p>
<p>nuff said.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
