Changeset 7945
- Timestamp:
- 05/16/08 23:20:56 (2 months ago)
- Files:
-
- trunk/wp-admin/press-this.php (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/wp-admin/press-this.php
r7934 r7945 169 169 170 170 // Clean up the data being passed in 171 $title = stripslashes($_GET['t']); 171 $title = wp_specialchars(stripslashes($_GET['t'])); 172 $selection = wp_specialchars(stripslashes($_GET['s'])); 173 $url = clean_url($_GET['u']); 172 174 173 175 if ( empty($_GET['tab']) ) { … … 286 288 jQuery(document).ready(function() { 287 289 var img, img_tag, aspect, w, h, skip, i, strtoappend = ""; 288 var my_src = [<?php echo get_images_from_uri( clean_url($_GET['u'])); ?>];290 var my_src = [<?php echo get_images_from_uri($url); ?>]; 289 291 290 292 for (i = 0; i < my_src.length; i++) { … … 332 334 <h2><?php _e('Caption') ?></h2> 333 335 <div class="editor-container"> 334 <textarea name="content" id="photo_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?>335 <br><a href="<?php echo clean_url($_GET['u']);?>"><?php echo $title;?></a></textarea>336 <textarea name="content" id="photo_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo $selection;?> 337 <br><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea> 336 338 </div> 337 339 … … 354 356 355 357 <h2><?php _e('Link Photo to following URL') ?></h2><?php _e('(leave blank to leave the photo unlinked)') ?> 356 <input name="photo_link" id="photo_link" class="text" value="<?php echo attribute_escape($ _GET['u']);?>"/>358 <input name="photo_link" id="photo_link" class="text" value="<?php echo attribute_escape($url);?>"/> 357 359 358 360 <?php tag_div(); ?> … … 385 387 <h2><?php _e('Post') ?></h2> 386 388 <div class="editor-container"> 387 <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?><br><a href="<?php echo $_GET['u'];?>"><?php echo $title;?></a></textarea>389 <textarea name="content" id="regular_post_two" style="height:170px;width:100%;" class="mceEditor"><?php echo $selection;?><br><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea> 388 390 </div> 389 391 … … 416 418 <h2><?php _e('Quote') ?></h2> 417 419 <div class="editor-container"> 418 <textarea name="content" id="quote_post_one" style="height:130px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?></textarea>420 <textarea name="content" id="quote_post_one" style="height:130px;width:100%;" class="mceEditor"><?php echo $selection;?></textarea> 419 421 </div> 420 422 421 423 <h2><?php _e('Source <span class="optional">(optional)</span>') ?></h2> 422 424 <div class="editor-container"> 423 <textarea name="content2" id="quote_post_two" style="height:130px;width:100%;" class="mceEditor"><br><a href="<?php echo clean_url($_GET['u']);?>"><?php echo $title;?></a></textarea>425 <textarea name="content2" id="quote_post_two" style="height:130px;width:100%;" class="mceEditor"><br><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea> 424 426 </div> 425 427 … … 451 453 452 454 <?php 453 if ( preg_match("/youtube\.com\/watch/i", $ _GET['u']) ) {454 list($domain, $video_id) = split("v=", $ _GET['u']);455 if ( preg_match("/youtube\.com\/watch/i", $url) ) { 456 list($domain, $video_id) = split("v=", $url); 455 457 ?> 456 <input type="hidden" name="content" value="<?php echo attribute_escape($ _GET['u']); ?>" />458 <input type="hidden" name="content" value="<?php echo attribute_escape($url); ?>" /> 457 459 <img src="http://img.youtube.com/vi/<?php echo $video_id; ?>/default.jpg" align="right" style="border:solid 1px #aaa;" width="130" height="97"/><br clear="all" /> 458 460 <?php } else { ?> … … 464 466 465 467 <div class="editor-container"> 466 <textarea name="content2" id="video_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo stripslashes($_GET['s']);?><br><a href="<?php echo clean_url($_GET['u']);?>"><?php echo $title;?></a></textarea>468 <textarea name="content2" id="video_post_two" style="height:130px;width:100%;" class="mceEditor"><?php echo $selection;?><br><a href="<?php echo $url;?>"><?php echo $title;?></a></textarea> 467 469 </div> 468 470
