<!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>[12617] trunk/wp-admin/ms-sites.php: Add esc_attr to ms-sites.php.</title>
</head>
<body>
<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.wordpress.org/changeset/12617">12617</a></dd>
<dt>Author</dt> <dd>ryan</dd>
<dt>Date</dt> <dd>2010-01-07 00:13:35 +0000 (Thu, 07 Jan 2010)</dd>
</dl>
<h3>Log Message</h3>
<pre>Add esc_attr to ms-sites.php. see <a href="http://trac.wordpress.org/ticket/11782">#11782</a></pre>
<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpadminmssitesphp">trunk/wp-admin/ms-sites.php</a></li>
</ul>
</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpadminmssitesphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-admin/ms-sites.php (12616 => 12617)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-admin/ms-sites.php        2010-01-07 00:01:52 UTC (rev 12616)
+++ trunk/wp-admin/ms-sites.php        2010-01-07 00:13:35 UTC (rev 12617)
</span><span class="lines">@@ -81,7 +81,7 @@
</span><span class="cx">                 <h2><?php _e('Edit Blog'); ?> - <a href='http://<?php echo $details['domain'].$details['path']; ?>'>http://<?php echo $details['domain'].$details['path']; ?></a></h2>
</span><span class="cx">                 <form method="post" action="wpmu-edit.php?action=updateblog">
</span><span class="cx">                         <?php wp_nonce_field('editblog'); ?>
</span><del>-                        <input type="hidden" name="id" value="<?php echo $id ?>" />
</del><ins>+                        <input type="hidden" name="id" value="<?php echo esc_attr($id) ?>" />
</ins><span class="cx">                         <div class='metabox-holder' style='width:49%;float:left;'>
</span><span class="cx">                         <div id="blogedit_bloginfo" class="postbox " >
</span><span class="cx">                         <h3 class='hndle'><span><?php _e('Blog info (wp_blogs)'); ?></span></h3>
</span><span class="lines">@@ -93,16 +93,16 @@
</span><span class="cx">                                                         </tr>
</span><span class="cx">                                                         <tr class="form-field form-required">
</span><span class="cx">                                                                 <th scope="row"><?php _e('Path') ?></th>
</span><del>-                                                                <td><input name="blog[path]" type="text" id="path" value="<?php echo $details['path'] ?>" size="40" style='margin-bottom:5px;' />
</del><ins>+                                                                <td><input name="blog[path]" type="text" id="path" value="<?php echo esc_attr($details['path']) ?>" size="40" style='margin-bottom:5px;' />
</ins><span class="cx">                                                                 <br /><input type='checkbox' style='width:20px;' name='update_home_url' value='update' <?php if( get_blog_option( $id, 'siteurl' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) || get_blog_option( $id, 'home' ) == preg_replace('|/+$|', '', 'http://' . $details['domain'] . $details['path']) ) echo 'checked="checked"'; ?> /> <?php _e( "Update 'siteurl' and 'home' as well." ); ?></td>
</span><span class="cx">                                                         </tr>
</span><span class="cx">                                                         <tr class="form-field">
</span><span class="cx">                                                                 <th scope="row"><?php _e('Registered') ?></th>
</span><del>-                                                                <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo $details['registered'] ?>" size="40" /></td>
</del><ins>+                                                                <td><input name="blog[registered]" type="text" id="blog_registered" value="<?php echo esc_attr($details['registered']) ?>" size="40" /></td>
</ins><span class="cx">                                                         </tr>
</span><span class="cx">                                                         <tr class="form-field">
</span><span class="cx">                                                                 <th scope="row"><?php _e('Last Updated') ?></th>
</span><del>-                                                                <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo $details['last_updated'] ?>" size="40" /></td>
</del><ins>+                                                                <td><input name="blog[last_updated]" type="text" id="blog_last_updated" value="<?php echo esc_attr($details['last_updated']) ?>" size="40" /></td>
</ins><span class="cx">                                                         </tr>
</span><span class="cx">                                                         <tr class="form-field">
</span><span class="cx">                                                                 <th scope="row"><?php _e('Public') ?></th>
</span><span class="lines">@@ -140,7 +140,7 @@
</span><span class="cx">                                                                 </td>
</span><span class="cx">                                                         </tr>
</span><span class="cx">                                                 </table>
</span><del>-                                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
</del><ins>+                                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _esc_attr_e('Update Options &raquo;') ?>" /></p>
</ins><span class="cx">                         </div></div>
</span><span class="cx">                         
</span><span class="cx">                         <div id="blogedit_blogoptions" class="postbox " >
</span><span class="lines">@@ -173,14 +173,14 @@
</span><span class="cx">                                                                 ?>
</span><span class="cx">                                                                         <tr class="form-field">
</span><span class="cx">                                                                                 <th scope="row"><?php echo ucwords( str_replace( "_", " ", $val['option_name'] ) ) ?></th>
</span><del>-                                                                                <td><input name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>" value="<?php echo wp_specialchars( stripslashes( $val['option_value'] ), 1 ) ?>" size="40" <?php echo $disabled ?> /></td>
</del><ins>+                                                                                <td><input name="option[<?php echo $val['option_name'] ?>]" type="text" id="<?php echo $val['option_name'] ?>" value="<?php echo esc_attr( stripslashes( $val['option_value'] ), 1 ) ?>" size="40" <?php echo $disabled ?> /></td>
</ins><span class="cx">                                                                         </tr>
</span><span class="cx">                                                                 <?php
</span><span class="cx">                                                                 }
</span><span class="cx">                                                         } // End foreach
</span><span class="cx">                                                         ?>
</span><span class="cx">                                                 </table>
</span><del>-                                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
</del><ins>+                                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options &raquo;') ?>" /></p>
</ins><span class="cx">                         </div></div>
</span><span class="cx">                         </div>
</span><span class="cx">                         
</span><span class="lines">@@ -214,7 +214,7 @@
</span><span class="cx">                                         <tr><th style="font-weight:bold;"><?php _e('Theme'); ?></th></tr>
</span><span class="cx">                                         <?php echo $out; ?>
</span><span class="cx">                                 </table>
</span><del>-                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
</del><ins>+                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options &raquo;') ?>" /></p>
</ins><span class="cx">                         </div></div>
</span><span class="cx">                         <?php } ?>
</span><span class="cx">                         
</span><span class="lines">@@ -240,7 +240,7 @@
</span><span class="cx">                                                                                 foreach( $editblog_roles as $role => $role_assoc ){
</span><span class="cx">                                                                                         $name = translate_with_context($role_assoc['name']);
</span><span class="cx">                                                                                         $selected = ( $role == $existing_role ) ? 'selected="selected"' : '';
</span><del>-                                                                                        echo "<option {$selected} value=\"{$role}\">{$name}</option>";
</del><ins>+                                                                                        echo "<option {$selected} value=\"" . esc_attr($role) . "\">{$name}</option>";
</ins><span class="cx">                                                                                 }
</span><span class="cx">                                                                                 ?>
</span><span class="cx">                                                                         </select>
</span><span class="lines">@@ -256,7 +256,7 @@
</span><span class="cx">                                                         echo '</tr>';
</span><span class="cx">                                                 }
</span><span class="cx">                                                 echo "</table>";
</span><del>-                                                echo '<p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="' . __('Update Options &raquo;') . '" /></p>';
</del><ins>+                                                echo '<p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="' . esc_attr__('Update Options &raquo;') . '" /></p>';
</ins><span class="cx">                                                 echo "</div></div>";
</span><span class="cx">                                         }
</span><span class="cx">                         ?>
</span><span class="lines">@@ -279,14 +279,14 @@
</span><span class="cx">                                                                 foreach( $editblog_roles as $role => $role_assoc ){
</span><span class="cx">                                                                         $name = translate_with_context($role_assoc['name']);
</span><span class="cx">                                                                         $selected = ( $role == $editblog_default_role ) ? 'selected="selected"' : '';
</span><del>-                                                                        echo "<option {$selected} value=\"{$role}\">{$name}</option>";
</del><ins>+                                                                        echo "<option {$selected} value=\"" . esc_attr($role) . "\">{$name}</option>";
</ins><span class="cx">                                                                 }
</span><span class="cx">                                                                 ?>
</span><span class="cx">                                                                 </select>
</span><span class="cx">                                                         </td>
</span><span class="cx">                                                 </tr>
</span><span class="cx">                                         </table>
</span><del>-                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
</del><ins>+                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options &raquo;') ?>" /></p>
</ins><span class="cx">                         </div></div>
</span><span class="cx">                         
</span><span class="cx">                         <div id="blogedit_miscoptions" class="postbox">
</span><span class="lines">@@ -295,7 +295,7 @@
</span><span class="cx">                                 <table class="form-table">
</span><span class="cx">                                                 <?php do_action( 'wpmueditblogaction', $id ); ?>
</span><span class="cx">                                         </table>
</span><del>-                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php _e('Update Options &raquo;') ?>" /></p>
</del><ins>+                                <p class="submit" style="margin:-15px 0 -5px 230px;"><input type="submit" name="Submit" value="<?php esc_attr_e('Update Options &raquo;') ?>" /></p>
</ins><span class="cx">                         </div></div>
</span><span class="cx">                         
</span><span class="cx">                         </div>
</span><span class="lines">@@ -371,10 +371,10 @@
</span><span class="cx">
</span><span class="cx">                 <form action="wpmu-blogs.php" method="get" id="wpmu-search">
</span><span class="cx">                         <input type="hidden" name="action" value="blogs" />
</span><del>-                        <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( wp_specialchars( $s, 1 ) ); ?>" size="17" />
-                        <input type="submit" class="button" name="blog_name" value="<?php _e('Search blogs by name') ?>" />
-                        <input type="submit" class="button" name="blog_id" value="<?php _e('by blog ID') ?>" />
-                        <input type="submit" class="button" name="blog_ip" value="<?php _e('by IP address') ?>" />
</del><ins>+                        <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo stripslashes( esc_attr( $s, 1 ) ); ?>" size="17" />
+                        <input type="submit" class="button" name="blog_name" value="<?php esc_attr_e('Search blogs by name') ?>" />
+                        <input type="submit" class="button" name="blog_id" value="<?php esc_attr_e('by blog ID') ?>" />
+                        <input type="submit" class="button" name="blog_ip" value="<?php esc_attr_e('by IP address') ?>" />
</ins><span class="cx">                 </form>
</span><span class="cx">
</span><span class="cx">                 <form id="form-blog-list" action="wpmu-edit.php?action=allblogs" method="post">
</span><span class="lines">@@ -383,9 +383,9 @@
</span><span class="cx">                         <?php if ( $blog_navigation ) echo "<div class='tablenav-pages'>$blog_navigation</div>"; ?>
</span><span class="cx">
</span><span class="cx">                         <div class="alignleft">
</span><del>-                                <input type="submit" value="<?php _e('Delete') ?>" name="allblog_delete" class="button-secondary delete" />
-                                <input type="submit" value="<?php _e('Mark as Spam') ?>" name="allblog_spam" class="button-secondary" />
-                                <input type="submit" value="<?php _e('Not Spam') ?>" name="allblog_notspam" class="button-secondary" />
</del><ins>+                                <input type="submit" value="<?php esc_attr_e('Delete') ?>" name="allblog_delete" class="button-secondary delete" />
+                                <input type="submit" value="<?php esc_attr_e('Mark as Spam') ?>" name="allblog_spam" class="button-secondary" />
+                                <input type="submit" value="<?php esc_attr_e('Not Spam') ?>" name="allblog_notspam" class="button-secondary" />
</ins><span class="cx">                                 <?php wp_nonce_field( 'allblogs' ); ?>
</span><span class="cx">                                 <br class="clear" />
</span><span class="cx">                         </div>
</span><span class="lines">@@ -460,7 +460,7 @@
</span><span class="cx">                                                 switch($column_name) {
</span><span class="cx">                                                         case 'id': ?>
</span><span class="cx">                                                                 <th scope="row" class="check-column">
</span><del>-                                                                        <input type='checkbox' id='blog_<?php echo $blog['blog_id'] ?>' name='allblogs[]' value='<?php echo $blog['blog_id'] ?>' />
</del><ins>+                                                                        <input type='checkbox' id='blog_<?php echo $blog['blog_id'] ?>' name='allblogs[]' value='<?php echo esc_attr($blog['blog_id']) ?>' />
</ins><span class="cx">                                                                 </th>
</span><span class="cx">                                                                 <th scope="row">
</span><span class="cx">                                                                         <?php echo $blog['blog_id'] ?>
</span><span class="lines">@@ -606,7 +606,7 @@
</span><span class="cx">                                         </tr>
</span><span class="cx">                                 </table>
</span><span class="cx">                                 <p class="submit">
</span><del>-                                        <input class="button" type="submit" name="go" value="<?php _e('Add Blog') ?>" /></p>
</del><ins>+                                        <input class="button" type="submit" name="go" value="<?php esc_attr_e('Add Blog') ?>" /></p>
</ins><span class="cx">                         </form>
</span><span class="cx">                 </div>
</span><span class="cx">                 <?php
</span></span></pre>
</div>
</div>
</body>
</html>