Changeset 10060 for trunk/src/bp-messages/bp-messages-template.php
- Timestamp:
- 08/22/2015 04:18:39 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/src/bp-messages/bp-messages-template.php (modified) (28 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-messages/bp-messages-template.php
r10059 r10060 657 657 */ 658 658 function bp_message_thread_delete_link() { 659 echo bp_get_message_thread_delete_link();659 echo esc_url( bp_get_message_thread_delete_link() ); 660 660 } 661 661 /** … … 776 776 */ 777 777 function bp_message_css_class() { 778 echo bp_get_message_css_class();778 echo esc_attr( bp_get_message_css_class() ); 779 779 } 780 780 /** … … 828 828 */ 829 829 function bp_message_thread_unread_count() { 830 echo bp_get_message_thread_unread_count();830 echo esc_html( bp_get_message_thread_unread_count() ); 831 831 } 832 832 /** … … 1103 1103 } 1104 1104 1105 echo $message;1105 echo esc_html( $message ); 1106 1106 } 1107 1107 … … 1150 1150 */ 1151 1151 function bp_messages_form_action() { 1152 echo bp_get_messages_form_action();1152 echo esc_url( bp_get_messages_form_action() ); 1153 1153 } 1154 1154 /** … … 1173 1173 */ 1174 1174 function bp_messages_username_value() { 1175 echo bp_get_messages_username_value();1175 echo esc_attr( bp_get_messages_username_value() ); 1176 1176 } 1177 1177 /** … … 1204 1204 */ 1205 1205 function bp_messages_subject_value() { 1206 echo bp_get_messages_subject_value();1206 echo esc_attr( bp_get_messages_subject_value() ); 1207 1207 } 1208 1208 /** … … 1215 1215 */ 1216 1216 function bp_get_messages_subject_value() { 1217 1218 // Sanitized in bp-messages-filters.php 1217 1219 $subject = ! empty( $_POST['subject'] ) 1218 1220 ? $_POST['subject'] … … 1233 1235 */ 1234 1236 function bp_messages_content_value() { 1235 echo bp_get_messages_content_value();1237 echo esc_textarea( bp_get_messages_content_value() ); 1236 1238 } 1237 1239 /** … … 1245 1247 function bp_get_messages_content_value() { 1246 1248 1247 $content = !empty( $_POST['content'] ) 1249 // Sanitized in bp-messages-filters.php 1250 $content = ! empty( $_POST['content'] ) 1248 1251 ? $_POST['content'] 1249 1252 : ''; … … 1371 1374 */ 1372 1375 function bp_message_notice_id() { 1373 echo bp_get_message_notice_id();1376 echo (int) bp_get_message_notice_id(); 1374 1377 } 1375 1378 /** … … 1467 1470 */ 1468 1471 function bp_message_notice_delete_link() { 1469 echo bp_get_message_notice_delete_link();1472 echo esc_url( bp_get_message_notice_delete_link() ); 1470 1473 } 1471 1474 /** … … 1492 1495 */ 1493 1496 function bp_message_activate_deactivate_link() { 1494 echo bp_get_message_activate_deactivate_link();1497 echo esc_url( bp_get_message_activate_deactivate_link() ); 1495 1498 } 1496 1499 /** … … 1522 1525 */ 1523 1526 function bp_message_activate_deactivate_text() { 1524 echo bp_get_message_activate_deactivate_text();1527 echo esc_html( bp_get_message_activate_deactivate_text() ); 1525 1528 } 1526 1529 /** … … 1612 1615 */ 1613 1616 function bp_send_private_message_link() { 1614 echo bp_get_send_private_message_link();1617 echo esc_url( bp_get_send_private_message_link() ); 1615 1618 } 1616 1619 /** … … 1689 1692 */ 1690 1693 function bp_message_loading_image_src() { 1691 echo bp_get_message_loading_image_src();1694 echo esc_url( bp_get_message_loading_image_src() ); 1692 1695 } 1693 1696 /** … … 1737 1740 */ 1738 1741 function bp_message_get_recipient_usernames() { 1739 echo bp_get_message_get_recipient_usernames();1742 echo esc_attr( bp_get_message_get_recipient_usernames() ); 1740 1743 } 1741 1744 /** … … 1745 1748 */ 1746 1749 function bp_get_message_get_recipient_usernames() { 1747 $recipients = isset( $_GET['r'] ) ? stripslashes( $_GET['r'] ) : ''; 1750 1751 // Sanitized in bp-messages-filters.php 1752 $recipients = isset( $_GET['r'] ) 1753 ? $_GET['r'] 1754 : ''; 1748 1755 1749 1756 /** … … 1982 1989 */ 1983 1990 function bp_thread_messages_order() { 1984 echo bp_get_thread_messages_order();1991 echo esc_attr( bp_get_thread_messages_order() ); 1985 1992 } 1986 1993 /** … … 2020 2027 */ 2021 2028 function bp_the_thread_id() { 2022 echo bp_get_the_thread_id();2029 echo (int) bp_get_the_thread_id(); 2023 2030 } 2024 2031 /** … … 2073 2080 * @return string 2074 2081 */ 2075 function bp_get_the_thread_recipients() {2082 function bp_get_the_thread_recipients() { 2076 2083 if ( 5 <= bp_get_thread_recipients_count() ) { 2077 2084 $recipients = sprintf( __( '%s recipients', 'buddypress' ), number_format_i18n( bp_get_thread_recipients_count() ) ); … … 2161 2168 */ 2162 2169 function bp_the_thread_message_id() { 2163 echo bp_get_the_thread_message_id();2170 echo (int) bp_get_the_thread_message_id(); 2164 2171 } 2165 2172 /** … … 2193 2200 */ 2194 2201 function bp_the_thread_message_css_class() { 2195 echo bp_get_the_thread_message_css_class();2202 echo esc_attr( bp_get_the_thread_message_css_class() ); 2196 2203 } 2197 2204 /** … … 2234 2241 */ 2235 2242 function bp_the_thread_message_alt_class() { 2236 echo bp_get_the_thread_message_alt_class();2243 echo esc_attr( bp_get_the_thread_message_alt_class() ); 2237 2244 } 2238 2245 /** … … 2266 2273 */ 2267 2274 function bp_the_thread_message_sender_id() { 2268 echo bp_get_the_thread_message_sender_id();2275 echo (int) bp_get_the_thread_message_sender_id(); 2269 2276 } 2270 2277 /** … … 2342 2349 */ 2343 2350 function bp_the_thread_message_sender_link() { 2344 echo bp_get_the_thread_message_sender_link();2351 echo esc_url( bp_get_the_thread_message_sender_link() ); 2345 2352 } 2346 2353 /** … … 2366 2373 */ 2367 2374 function bp_the_thread_message_sender_name() { 2368 echo bp_get_the_thread_message_sender_name();2375 echo esc_html( bp_get_the_thread_message_sender_name() ); 2369 2376 } 2370 2377 /** … … 2396 2403 */ 2397 2404 function bp_the_thread_delete_link() { 2398 echo bp_get_the_thread_delete_link();2405 echo esc_url( bp_get_the_thread_delete_link() ); 2399 2406 } 2400 2407 /**
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)