<?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/articles/creating-people-friendly-urls-using-php-and-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://imgiseverything.co.uk/articles/creating-people-friendly-urls-using-php-and-mysql/</link>
	<description>Manchester web designer Phil Thompson</description>
	<lastBuildDate>Wed, 21 Mar 2012 16:14:26 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: phil</title>
		<link>http://imgiseverything.co.uk/articles/creating-people-friendly-urls-using-php-and-mysql/#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&#039;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 = &#039; escape($_GET[&#039;title&#039;])&#039;;

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/articles/creating-people-friendly-urls-using-php-and-mysql/#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[&#039;title&#039;] = &#039;&quot;&quot;; drop table articles&#039;;

SELECT * FROM articles WHERE title_html = $_GET[&#039;title&#039;];

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>

