<?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: Bad Behavior 2.0.27: Error "Warning: preg_replace()"</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Bad Behavior 2.0.27: Error "Warning: preg_replace()"</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 15:27:43 +0000</pubDate>

<item>
<title>nv1962 on "Bad Behavior 2.0.27: Error "Warning: preg_replace()""</title>
<link>http://wordpress.org/support/topic/278402#post-1097827</link>
<pubDate>Thu, 11 Jun 2009 00:26:19 +0000</pubDate>
<dc:creator>nv1962</dc:creator>
<guid isPermaLink="false">1097827@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Aha! Thanks to &#60;a href=&#34;http://www.bad-behavior.ioerror.us/2009/06/10/bad-behavior-2027/&#34;&#62;Jonathan Lundell's tip&#60;/a&#62; posted at the Bad Behavior author's site, the solution is not only available but also very simple to apply.&#60;/p&#62;
&#60;p&#62;Just go to &#60;strong&#62;line 114&#60;/strong&#62; of the file &#60;strong&#62;core.inc.php&#60;/strong&#62; (it's within the &#34;secondary&#34; plugin's sub-folder, which is also named &#60;strong&#62;bad-behavior&#60;/strong&#62;!) and substitute that line with the following:&#60;br /&#62;
&#60;code&#62;$_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;] = preg_replace(&#38;quot;/^::ffff:/&#38;quot;, &#38;quot;&#38;quot;, $_SERVER[&#38;#39;REMOTE_ADDR&#38;#39;]);&#60;/code&#62;&#60;br /&#62;
Problem solved!
&#60;/p&#62;</description>
</item>
<item>
<title>nv1962 on "Bad Behavior 2.0.27: Error "Warning: preg_replace()""</title>
<link>http://wordpress.org/support/topic/278402#post-1097790</link>
<pubDate>Wed, 10 Jun 2009 23:26:31 +0000</pubDate>
<dc:creator>nv1962</dc:creator>
<guid isPermaLink="false">1097790@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Just upgraded to BB 2.0.27 and suddenly I get these:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Warning: preg_replace() [function.preg-replace]: No ending delimiter '^' found in /path/to/plugins/bad-behavior/bad-behavior/core.inc.php on line 114&#60;/p&#62;
&#60;p&#62;Warning: Cannot modify header information - headers already sent by (output started at /path/to/plugins/bad-behavior/bad-behavior/core.inc.php:114) in /path/to/plugins/bad-behavior/bad-behavior/screener.inc.php on line 8&#60;/p&#62;
&#60;p&#62;Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /path/to/plugins/bad-behavior/bad-behavior/core.inc.php:114) in /path/to/plugins/enhanced-wordpress-contactform/wp-contactform.php on line 247&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;Tried deleting the old (2.0.26) BB folder and upping the new version via FTP but no dice.&#60;/p&#62;
&#60;p&#62;I suppose the issue is a missing regex delimiter, but, uh, I'm not very good at this PHP / RegEx stuff...&#60;/p&#62;
&#60;p&#62;Help much appreciated!
&#60;/p&#62;</description>
</item>

</channel>
</rss>
