You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$rtmedia_option_save = filter_input( INPUT_POST, 'rtmedia-options-save', FILTER_SANITIZE_FULL_SPECIAL_CHARS );// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since we are only checking if it is a save action.
$rtmedia_option_save = filter_input( INPUT_POST, 'rtmedia-options-save', FILTER_SANITIZE_FULL_SPECIAL_CHARS );// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since it is the responsibility of caller function to verify nonce.
$options = filter_input( INPUT_POST, 'rtmedia-options', FILTER_DEFAULT, FILTER_REQUIRE_ARRAY );// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since it is the responsibility of caller function to verify nonce.
$setting_save = filter_input( INPUT_GET, 'settings-saved', FILTER_SANITIZE_FULL_SPECIAL_CHARS );// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since it is the responsibility of caller function to verify nonce.
do_action( 'rtmedia_sanitize_settings', $_POST, $input ); // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since this function is responsible only for sanitization of data.
Copy file name to clipboardExpand all lines: app/helper/RTMediaSupport.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -179,7 +179,7 @@ public function render_support( $page = '' ) {
179
179
* @return void
180
180
*/
181
181
publicfunctionservice_selector() {
182
-
// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since we are only checking which tab is checked in the settings.
@@ -411,9 +411,9 @@ public function migration_html( $page = '' ) {
411
411
* @return void
412
412
*/
413
413
publicfunctionget_form( $form = '' ) {
414
-
414
+
// todo: nonce required.
415
415
if ( empty( $form ) ) {
416
-
$form = filter_input( INPUT_POST, 'form' . FILTER_SANITIZE_FULL_SPECIAL_CHARS );// phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- Not required since we are only checking which tab is selected and send the form for it.
Copy file name to clipboardExpand all lines: app/main/RTMedia.php
+5-5Lines changed: 5 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1121,15 +1121,16 @@ public static function load_translation() {
1121
1121
* @return bool
1122
1122
*/
1123
1123
publicfunctioncheck_global_album() {
1124
+
// todo: Nonce required.
1124
1125
$album = newRTMediaAlbum();
1125
1126
$global_album = $album->get_default();
1126
1127
1127
-
$action = sanitize_text_field( filter_input( INPUT_POST, 'action', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) );// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.NoNonceVerification -- We are just intercepting if a action is for a different kind of upload and removing a field based on it.
1128
-
$mode = sanitize_text_field( filter_input( INPUT_POST, 'mode', FILTER_SANITIZE_FULL_SPECIAL_CHARS ) );// phpcs:ignore WordPress.Security.NonceVerification.Recommended, WordPress.Security.NonceVerification.NoNonceVerification -- We are just intercepting if a action is for a different kind of upload and removing a field based on it.
unset( $_POST['name'] ); // phpcs:ignore WordPress.Security.NonceVerification.NoNonceVerification, WordPress.Security.NonceVerification.Missing -- We are removing the value from the $_POST.
if ( ! empty( $_POST['rtMedia_attached_files'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not needed since we are only checking if the field exists and it is done already.
1496
+
// Nonce verification is not required here as it is already done in previously.
if ( empty( $_FILES['file'] ) ) {// phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not needed since we are only checking if the value exists.
$uploaded = bp_core_avatar_handle_upload( $_FILES, 'xprofile_avatar_upload_dir' );// phpcs:ignore WordPress.Security.NonceVerification.Missing -- It is verified by the external plugin function.
@@ -1139,7 +1139,7 @@ public function rtmedia_api_process_rtmedia_upload_media_request() {
1139
1139
$updated = false;
1140
1140
$uploaded_look = false;
1141
1141
1142
-
if ( empty( $rtmedia_file ) && empty( $_FILES['rtmedia_file'] ) ) {// phpcs:ignore WordPress.Security.NonceVerification.Missing -- We are only checking presence of a data.
if ( ! empty( $_POST['rtMedia_attached_files'] ) ) { // phpcs:ignore WordPress.Security.NonceVerification.Missing -- Not needed since we are only checking if the field exists and it is done already.
35
+
// Nonce verification is not required here as it is already done in previously.
0 commit comments