<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[BuddyPress] [3370] trunk: Use esc_html()
  instead of deprecated wp_specialchars()</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd>3370</dd>
<dt>Author</dt> <dd>djpaul</dd>
<dt>Date</dt> <dd>2010-11-07 00:24:39 +0000 (Sun, 07 Nov 2010)</dd>
</dl>

<h3>Log Message</h3>
<pre>Use esc_html() instead of deprecated wp_specialchars()</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkbpblogsbpblogstemplatetagsphp">trunk/bp-blogs/bp-blogs-templatetags.php</a></li>
<li><a href="#trunkbpcorebpcorefiltersphp">trunk/bp-core/bp-core-filters.php</a></li>
<li><a href="#trunkbpcorebpcoresettingsphp">trunk/bp-core/bp-core-settings.php</a></li>
<li><a href="#trunkbpcorebpcoresignupphp">trunk/bp-core/bp-core-signup.php</a></li>
<li><a href="#trunkbpxprofilebpxprofileadminphp">trunk/bp-xprofile/bp-xprofile-admin.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkbpblogsbpblogstemplatetagsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-blogs/bp-blogs-templatetags.php (3369 => 3370)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-blogs/bp-blogs-templatetags.php        2010-11-07 00:20:02 UTC (rev 3369)
+++ trunk/bp-blogs/bp-blogs-templatetags.php        2010-11-07 00:24:39 UTC (rev 3370)
</span><span class="lines">@@ -396,7 +396,7 @@
</span><span class="cx">         &lt;?php if ( $errmsg = $errors-&gt;get_error_message('blog_title') ) { ?&gt;
</span><span class="cx">                 &lt;p class=&quot;error&quot;&gt;&lt;?php echo $errmsg ?&gt;&lt;/p&gt;
</span><span class="cx">         &lt;?php }
</span><del>-        echo '&lt;input name=&quot;blog_title&quot; type=&quot;text&quot; id=&quot;blog_title&quot; value=&quot;'.wp_specialchars($blog_title, 1).'&quot; /&gt;&lt;/p&gt;';
</del><ins>+        echo '&lt;input name=&quot;blog_title&quot; type=&quot;text&quot; id=&quot;blog_title&quot; value=&quot;'.esc_html($blog_title, 1).'&quot; /&gt;&lt;/p&gt;';
</ins><span class="cx">         ?&gt;
</span><span class="cx"> 
</span><span class="cx">         &lt;p&gt;
</span></span></pre></div>
<a id="trunkbpcorebpcorefiltersphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-filters.php (3369 => 3370)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-filters.php        2010-11-07 00:20:02 UTC (rev 3369)
+++ trunk/bp-core/bp-core-filters.php        2010-11-07 00:24:39 UTC (rev 3370)
</span><span class="lines">@@ -194,7 +194,7 @@
</span><span class="cx">         if ( empty( $admin_email ) )
</span><span class="cx">                 $admin_email = 'support@' . $_SERVER['SERVER_NAME'];
</span><span class="cx"> 
</span><del>-        $from_name = ( '' == get_site_option( &quot;site_name&quot; ) ) ? 'WordPress' : wp_specialchars( get_site_option( &quot;site_name&quot; ) );
</del><ins>+        $from_name = ( '' == get_site_option( &quot;site_name&quot; ) ) ? 'WordPress' : esc_html( get_site_option( &quot;site_name&quot; ) );
</ins><span class="cx">         $message_headers = &quot;MIME-Version: 1.0\n&quot; . &quot;From: \&quot;{$from_name}\&quot; &lt;{$admin_email}&gt;\n&quot; . &quot;Content-Type: text/plain; charset=\&quot;&quot; . get_option('blog_charset') . &quot;\&quot;\n&quot;;
</span><span class="cx">         $message = sprintf(__(&quot;Thanks for registering! To complete the activation of your account and blog, please click the following link:\n\n%1$s\n\n\n\nAfter you activate, you can visit your blog here:\n\n%2$s&quot;, 'buddypress' ), $activate_url, esc_url(&quot;http://{$domain}{$path}&quot; ) );
</span><span class="cx">         $subject = '[' . $from_name . '] ' . sprintf(__('Activate %s', 'buddypress' ), esc_url('http://' . $domain . $path));
</span><span class="lines">@@ -228,7 +228,7 @@
</span><span class="cx">         if ( is_admin() )
</span><span class="cx">                 $email = '&amp;e=1';
</span><span class="cx"> 
</span><del>-        $from_name = ( '' == get_site_option( &quot;site_name&quot; ) ) ? 'WordPress' : wp_specialchars( get_site_option( &quot;site_name&quot; ) );
</del><ins>+        $from_name = ( '' == get_site_option( &quot;site_name&quot; ) ) ? 'WordPress' : esc_html( get_site_option( &quot;site_name&quot; ) );
</ins><span class="cx">         $message_headers = &quot;MIME-Version: 1.0\n&quot; . &quot;From: \&quot;{$from_name}\&quot; &lt;{$admin_email}&gt;\n&quot; . &quot;Content-Type: text/plain; charset=\&quot;&quot; . get_option('blog_charset') . &quot;\&quot;\n&quot;;
</span><span class="cx">         $message = sprintf( __( &quot;Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n&quot;, 'buddypress' ), $activate_url . $email, esc_url( &quot;http://{$domain}{$path}&quot; ) );
</span><span class="cx">         $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
</span></span></pre></div>
<a id="trunkbpcorebpcoresettingsphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-settings.php (3369 => 3370)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-settings.php        2010-11-07 00:20:02 UTC (rev 3369)
+++ trunk/bp-core/bp-core-settings.php        2010-11-07 00:24:39 UTC (rev 3370)
</span><span class="lines">@@ -42,7 +42,7 @@
</span><span class="cx">                 // Form has been submitted and nonce checks out, lets do it.
</span><span class="cx"> 
</span><span class="cx">                 if ( $_POST['email'] != '' )
</span><del>-                        $current_user-&gt;user_email = wp_specialchars( trim( $_POST['email'] ) );
</del><ins>+                        $current_user-&gt;user_email = esc_html( trim( $_POST['email'] ) );
</ins><span class="cx"> 
</span><span class="cx">                 if ( $_POST['pass1'] != '' &amp;&amp; $_POST['pass2'] != '' ) {
</span><span class="cx">                         if ( $_POST['pass1'] == $_POST['pass2'] &amp;&amp; !strpos( &quot; &quot; . $_POST['pass1'], &quot;\\&quot; ) )
</span></span></pre></div>
<a id="trunkbpcorebpcoresignupphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-core/bp-core-signup.php (3369 => 3370)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-core/bp-core-signup.php        2010-11-07 00:20:02 UTC (rev 3369)
+++ trunk/bp-core/bp-core-signup.php        2010-11-07 00:24:39 UTC (rev 3370)
</span><span class="lines">@@ -609,7 +609,7 @@
</span><span class="cx">         if ( empty( $admin_email ) )
</span><span class="cx">                 $admin_email = 'noreply@' . $_SERVER['SERVER_NAME'];
</span><span class="cx"> 
</span><del>-        $from_name = ( '' == get_option( 'blogname' ) ) ? 'BuddyPress' : wp_specialchars( get_option( 'blogname' ) );
</del><ins>+        $from_name = ( '' == get_option( 'blogname' ) ) ? 'BuddyPress' : esc_html( get_option( 'blogname' ) );
</ins><span class="cx">         $message_headers = &quot;MIME-Version: 1.0\n&quot; . &quot;From: \&quot;{$from_name}\&quot; &lt;{$admin_email}&gt;\n&quot; . &quot;Content-Type: text/plain; charset=\&quot;&quot; . get_option( 'blog_charset' ) . &quot;\&quot;\n&quot;;
</span><span class="cx">         $message = sprintf( __( &quot;Thanks for registering! To complete the activation of your account please click the following link:\n\n%s\n\n&quot;, 'buddypress' ), $activate_url );
</span><span class="cx">         $subject = '[' . $from_name . '] ' . __( 'Activate Your Account', 'buddypress' );
</span></span></pre></div>
<a id="trunkbpxprofilebpxprofileadminphp"></a>
<div class="modfile"><h4>Modified: trunk/bp-xprofile/bp-xprofile-admin.php (3369 => 3370)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/bp-xprofile/bp-xprofile-admin.php        2010-11-07 00:20:02 UTC (rev 3369)
+++ trunk/bp-xprofile/bp-xprofile-admin.php        2010-11-07 00:24:39 UTC (rev 3370)
</span><span class="lines">@@ -58,7 +58,7 @@
</span><span class="cx">                                 $type = ( $type == 'error' ) ? 'error' : 'updated'; ?&gt;
</span><span class="cx"> 
</span><span class="cx">                                 &lt;div id=&quot;message&quot; class=&quot;&lt;?php echo $type; ?&gt; fade&quot;&gt;
</span><del>-                                        &lt;p&gt;&lt;?php echo wp_specialchars( esc_attr( $message ) ); ?&gt;&lt;/p&gt;
</del><ins>+                                        &lt;p&gt;&lt;?php echo esc_html( esc_attr( $message ) ); ?&gt;&lt;/p&gt;
</ins><span class="cx">                                 &lt;/div&gt;
</span><span class="cx"> &lt;?php                endif; ?&gt;
</span><span class="cx"> 
</span></span></pre>
</div>
</div>

</body>
</html>