Changeset 4656 for trunk/wp-includes/functions.php
- Timestamp:
- 12/21/2006 10:10:04 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r4643 r4656 232 232 233 233 function form_option($option) { 234 echo wp_specialchars( get_option($option), 1);234 echo attribute_escape( get_option($option)); 235 235 } 236 236 … … 915 915 916 916 function wp_referer_field() { 917 $ref = wp_specialchars($_SERVER['REQUEST_URI']);917 $ref = attribute_escape($_SERVER['REQUEST_URI']); 918 918 echo '<input type="hidden" name="_wp_http_referer" value="'. $ref . '" />'; 919 919 if ( wp_get_original_referer() ) { 920 $original_ref = wp_specialchars(stripslashes(wp_get_original_referer()));920 $original_ref = attribute_escape(stripslashes(wp_get_original_referer())); 921 921 echo '<input type="hidden" name="_wp_original_http_referer" value="'. $original_ref . '" />'; 922 922 } … … 924 924 925 925 function wp_original_referer_field() { 926 echo '<input type="hidden" name="_wp_original_http_referer" value="' . wp_specialchars(stripslashes($_SERVER['REQUEST_URI'])) . '" />';926 echo '<input type="hidden" name="_wp_original_http_referer" value="' . attribute_escape(stripslashes($_SERVER['REQUEST_URI'])) . '" />'; 927 927 } 928 928 … … 1191 1191 $v = substr(strstr($a, '='), 1); 1192 1192 $k = substr($a, 0, -(strlen($v)+1)); 1193 $html .= "\t\t<input type='hidden' name='" . wp_specialchars( urldecode($k), 1 ) . "' value='" . wp_specialchars( urldecode($v), 1) . "' />\n";1193 $html .= "\t\t<input type='hidden' name='" . attribute_escape( urldecode($k)) . "' value='" . attribute_escape( urldecode($v)) . "' />\n"; 1194 1194 } 1195 1195 $html .= "\t\t<input type='hidden' name='_wpnonce' value='" . wp_create_nonce($action) . "' />\n";
Note: See TracChangeset
for help on using the changeset viewer.