<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: [Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: [Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 13:43:53 +0000</pubDate>

<item>
<title>then2s on "[Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings"</title>
<link>http://wordpress.org/support/topic/281992#post-1287406</link>
<pubDate>Thu, 19 Nov 2009 22:12:41 +0000</pubDate>
<dc:creator>then2s</dc:creator>
<guid isPermaLink="false">1287406@http://wordpress.org/support/</guid>
<description>&#60;p&#62;AWESOME! The fix worked for me perfectly! I'm using you fix at &#60;a href=&#34;http://TheN2S.com&#34; rel=&#34;nofollow&#34;&#62;http://TheN2S.com&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Here was my problem: &#60;a href=&#34;http://wordpress.org/support/topic/333634?replies=1&#34;&#62;http://wordpress.org/support/topic/333634?replies=1&#60;/a&#62;
&#60;/p&#62;</description>
</item>
<item>
<title>serviendo on "[Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings"</title>
<link>http://wordpress.org/support/topic/281992#post-1225502</link>
<pubDate>Sat, 26 Sep 2009 09:44:18 +0000</pubDate>
<dc:creator>serviendo</dc:creator>
<guid isPermaLink="false">1225502@http://wordpress.org/support/</guid>
<description>&#60;p&#62;This worked for me, many thanks mmorpglife.&#60;/p&#62;
&#60;p&#62;This was only happeningon one of my blogs - the other 2 were fine. Settings were the same too. Odd how these things happen!
&#60;/p&#62;</description>
</item>
<item>
<title>mmorpglife on "[Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings"</title>
<link>http://wordpress.org/support/topic/281992#post-1150732</link>
<pubDate>Sat, 25 Jul 2009 11:20:50 +0000</pubDate>
<dc:creator>mmorpglife</dc:creator>
<guid isPermaLink="false">1150732@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I had the same problem. This seems to be caused by one of Wordpress' native functions &#60;a href=&#34;http://codex.wordpress.org/Function_Reference/force_balance_tags&#34;&#62;force_balance_tags&#60;/a&#62;. This function worked before as well on the content of your blog but for some reason exec-php executed before this filter. In any case, the way I resolved it is I added these lines to exec-php file /include/runtime.php function  filter_user_content($content).&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;if(strpos($content,&#38;#39;&#38;lt; ?php &#38;#39;)!==FALSE)
	{
		$content=str_replace(&#38;#39;&#38;lt; ?php&#38;#39;,&#38;#39;&#38;lt;?php&#38;#39;,$content);
	}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Now it executes the code properly. The problem with this approach is that once you upgrade exec-PHP and they do not include this fix or provide another one for this particular problem you will again have this nasty bug. I resolved this by making a small plugin of my own called my-fixes.php. Put it in the plugins folder. and has this code in it:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;add_filter(&#38;#39;the_content&#38;#39;, &#38;#39;my_filter_php_tag&#38;#39;, 0); //fix for exec-php plugin and wordpress 2.8 and messed up php tag

function my_filter_php_tag($content)
{
	if(strpos($content,&#38;#39;&#38;lt; ?php &#38;#39;)!==FALSE)
	{
		$content=str_replace(&#38;#39;&#38;lt; ?php&#38;#39;,&#38;#39;&#38;lt;?php&#38;#39;,$content);
	}
	return $content;
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Hope this helps...
&#60;/p&#62;</description>
</item>
<item>
<title>WebGeek on "[Plugin: Exec-PHP] Shows PHP Code on Non-Homepage Post Listings"</title>
<link>http://wordpress.org/support/topic/281992#post-1110066</link>
<pubDate>Fri, 19 Jun 2009 16:53:17 +0000</pubDate>
<dc:creator>WebGeek</dc:creator>
<guid isPermaLink="false">1110066@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I found a bug that I'm not sure if it's always been there or just showed up in 2.8. When you see the list of posts on your blog homepage it's fine, but when you click to page 2,3,4, etc of the listings, the PHP code is exposed and not executed. When you click through to the actual post, it's fine. &#60;/p&#62;
&#60;p&#62;This is also a potential security risk.&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://wordpress.org/extend/plugins/exec-php/&#34; rel=&#34;nofollow&#34;&#62;http://wordpress.org/extend/plugins/exec-php/&#60;/a&#62;
&#60;/p&#62;</description>
</item>

</channel>
</rss>
