Created
June 7, 2013 13:12
-
-
Save mallorydxw/5729141 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From 157cc551cbe2bbdbd836976fa43bb249e2608e30 Mon Sep 17 00:00:00 2001 | |
From: Tom Adams <tom@dxw.com> | |
Date: Fri, 7 Jun 2013 09:01:33 -0400 | |
Subject: [PATCH] s/$_POST/stripslashes_deep($_POST)/ | |
--- | |
by-email/by-email.php | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
diff --git a/by-email/by-email.php b/by-email/by-email.php | |
index 81077d8..c16dfeb 100644 | |
--- a/by-email/by-email.php | |
+++ b/by-email/by-email.php | |
@@ -656,7 +656,7 @@ function invite_anyone_screen_two() { | |
global $bp; | |
if ( $bp->current_component == $bp->invite_anyone->slug && $bp->current_action == 'sent-invites' && isset( $bp->action_variables[0] ) && $bp->action_variables[0] == 'send' ) { | |
- if ( ! invite_anyone_process_invitations( $_POST ) ) | |
+ if ( ! invite_anyone_process_invitations( stripslashes_deep( $_POST ) ) ) | |
bp_core_add_message( __( 'Sorry, there was a problem sending your invitations. Please try again.', 'bp-invite-anyone' ), 'error' ); | |
} | |
-- | |
1.8.2.1.342.gfa7285d |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment