Changeset 1743
- Timestamp:
- 10/05/2004 06:59:13 AM (21 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/admin-header.php
r1648 r1743 42 42 <link rel="shortcut icon" href="../wp-images/wp-favicon.png" /> 43 43 <meta http-equiv="Content-Type" content="text/html; charset=<?php echo get_settings('blog_charset'); ?>" /> 44 <?php45 if ($redirect==1) {46 ?>47 <script type="text/javascript">48 <!--49 function redirect() {50 window.location = "<?php echo $redirect_url; ?>";51 }52 setTimeout("redirect();", 600);53 //-->54 </script>55 <?php56 } // redirect57 ?>58 44 59 45 <?php if (isset($xfn)) : ?> -
trunk/wp-admin/bookmarklet.php
r1698 r1743 1 1 <?php 2 /* <Bookmarklet> */3 4 // accepts 'post_title' and 'content' as vars passed in. Add-on from Alex King5 6 2 $mode = 'bookmarklet'; 7 3 … … 24 20 </head> 25 21 <body></body> 26 </html> <?php27 22 </html> 23 <?php 28 24 } else { 29 30 $popuptitle = stripslashes($popuptitle); 31 $text = stripslashes(urldecode($text)); 25 $popuptitle = htmlspecialchars(stripslashes($popuptitle)); 26 $text = htmlspecialchars(stripslashes(urldecode($text))); 32 27 33 28 /* big funky fixes for browsers' javascript bugs */ … … 58 53 // the var instead of changing the assignment on the lines above. 59 54 // -- Alex King 2004-01-07 60 $edited_post_title = $post_title;55 $edited_post_title = htmlspecialchars($post_title); 61 56 62 57 // $post_pingback needs to be set in any file that includes edit-form.php -
trunk/wp-admin/categories.php
r1551 r1743 98 98 <form name="editcat" action="categories.php" method="post"> 99 99 <input type="hidden" name="action" value="editedcat" /> 100 <input type="hidden" name="cat_ID" value="<?php echo $ _GET['cat_ID']?>" />100 <input type="hidden" name="cat_ID" value="<?php echo $cat_ID ?>" /> 101 101 <p><?php _e('Category name:') ?><br /> 102 102 <input type="text" name="cat_name" value="<?php echo htmlspecialchars($cat_name); ?>" /></p> -
trunk/wp-admin/edit-comments.php
r1690 r1743 29 29 <fieldset> 30 30 <legend><?php _e('Show Comments That Contain...') ?></legend> 31 <input type="text" name="s" value="<?php if (isset($ s)) echo $s; ?>" size="17" />31 <input type="text" name="s" value="<?php if (isset($_GET['s'])) echo htmlspecialchars($_GET['s']); ?>" size="17" /> 32 32 <input type="submit" name="submit" value="<?php _e('Search') ?>" /> 33 33 <input type="hidden" name="mode" value="<?php echo $mode; ?>" /> … … 149 149 </div> 150 150 151 <?php 152 include('admin-footer.php'); 153 ?> 151 <?php include('admin-footer.php'); ?> -
trunk/wp-admin/edit.php
r1720 r1743 66 66 echo $month[substr( $_GET['m'], 4, 2 )] . ' ' . substr( $_GET['m'], 0, 4 ); 67 67 } elseif ( isset( $_GET['s'] ) ) { 68 printf(__('Search for “%s”'), $_GET['s']);68 printf(__('Search for “%s”'), htmlspecialchars($_GET['s']) ); 69 69 } else { 70 70 _e('Last 15 Posts');
Note: See TracChangeset
for help on using the changeset viewer.