Changeset 2699 for trunk/wp-includes/functions.php
- Timestamp:
- 07/05/2005 08:47:22 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r2697 r2699 844 844 if ( $headers = wp_get_http_headers( $url) ) { 845 845 $len = (int) $headers['content-length']; 846 $type = addslashes( $headers['content-type'] );846 $type = $wpdb->escape( $headers['content-type'] ); 847 847 $allowed_types = array( 'video', 'audio' ); 848 848 if( in_array( substr( $type, 0, strpos( $type, "/" ) ), $allowed_types ) ) { … … 1883 1883 1884 1884 function add_magic_quotes($array) { 1885 global $wpdb; 1886 1885 1887 foreach ($array as $k => $v) { 1886 1888 if (is_array($v)) { 1887 1889 $array[$k] = add_magic_quotes($v); 1888 1890 } else { 1889 $array[$k] = addslashes($v);1891 $array[$k] = $wpdb->escape($v); 1890 1892 } 1891 1893 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)