<?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: Redirect Loop by qTranslate on WordPress 3.0</title>
	<atom:link href="http://blog.off-soft.net/wordpress/qtranslate_redirect_loop.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.off-soft.net/en/wordpress/qtranslate_redirect_loop.html</link>
	<description>Joomla!, Wordpress as CMS using a site building, site management, software usage to describe the development tips.</description>
	<lastBuildDate>Tue, 06 Dec 2011 07:09:30 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
	<item>
		<title>By: Adam</title>
		<link>http://blog.off-soft.net/en/wordpress/qtranslate_redirect_loop.html/comment-page-1#comment-407</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Fri, 07 Oct 2011 14:04:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.off-soft.net/?p=561#comment-407</guid>
		<description>Hi,
Thank you for your post - I&#039;m surprised to be first to say thank you.

I&#039;m using qTranslate in version 2.5.24 and there is slight difference in the code of qtranslate_core.php.

Basically the Redirect itself (and exit) is done after the loop so break does not work anymore to prevent redirect. Simple fix is to introduce a flag (I call it $redirect_corrupt), which is risen once the faulty redirect is detected by your code. Then the flag is being checked when redirect is about to be applied.

Cheers &amp; thanks,
Adam</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Thank you for your post &#8211; I&#8217;m surprised to be first to say thank you.</p>
<p>I&#8217;m using qTranslate in version 2.5.24 and there is slight difference in the code of qtranslate_core.php.</p>
<p>Basically the Redirect itself (and exit) is done after the loop so break does not work anymore to prevent redirect. Simple fix is to introduce a flag (I call it $redirect_corrupt), which is risen once the faulty redirect is detected by your code. Then the flag is being checked when redirect is about to be applied.</p>
<p>Cheers &amp; thanks,<br />
Adam</p>
]]></content:encoded>
	</item>
</channel>
</rss>

