Changeset 8237
- Timestamp:
- 07/02/2008 03:26:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/press-this.php
r8235 r8237 116 116 117 117 // Ajax Requests 118 $title = wp_specialchars( stripslashes($_GET['t']));118 $title = wp_specialchars(aposfix(stripslashes($_GET['t']))); 119 119 120 120 $selection = str_replace("\n", "<br />", aposfix( stripslashes($_GET['s']) ) ); … … 179 179 if($_REQUEST['ajax'] == 'photo_images') { 180 180 function get_images_from_uri($uri) { 181 if(preg_match('/\.(jpg| png|gif)/', $uri) && !strpos($uri,'blogger.com'))181 if(preg_match('/\.(jpg|jpe|jpeg|png|gif)/', $uri) && !strpos($uri,'blogger.com')) 182 182 return "'".$uri."'"; 183 183 … … 187 187 $host = parse_url($uri); 188 188 189 $pattern = '/<img ([^>]*)src=(\"|\')( .+?)(\2)([^>\/]*)\/*>/is';189 $pattern = '/<img ([^>]*)src=(\"|\')([^<>]+?\.(png|jpeg|jpg|jpe|gif))(\2)([^>\/]*)\/*>/is'; 190 190 preg_match_all($pattern, $content, $matches); 191 191
Note: See TracChangeset
for help on using the changeset viewer.