Ticket #5775: 5775-urlencode.patch
File 5775-urlencode.patch, 777 bytes (added by , 17 years ago) |
---|
-
wp-includes/pluggable.php
1207 1207 1208 1208 if ( empty($default) ) 1209 1209 $default = "http://www.gravatar.com/avatar.php?gravatar_id=ad516503a11cd5ca435acc9bb6523536&size=$size"; // ad516503a11cd5ca435acc9bb6523536 == md5('unknown@gravatar.com') 1210 $default = urlencode( $default );1211 1210 1212 1211 if ( !empty($email) ) { 1213 1212 $out = 'http://www.gravatar.com/avatar.php?gravatar_id='; 1214 1213 $out .= md5( strtolower( $email ) ); 1215 1214 $out .= "&size={$size}"; 1216 $out .= "&default={$default}";1215 $out .= '&default=' . urlencode( $default ); 1217 1216 1218 1217 $rating = get_option('avatar_rating'); 1219 1218 if ( !empty( $rating ) )