Created
February 13, 2017 22:35
-
-
Save joebordes/4fb34e75618482c8570368e8c22c0e3f to your computer and use it in GitHub Desktop.
Validation: Quote in account name not permitted
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
diff --git a/modules/Accounts/AccountsValidation.php b/modules/Accounts/AccountsValidation.php | |
index edc6a9f..7377ebb 100644 | |
--- a/modules/Accounts/AccountsValidation.php | |
+++ b/modules/Accounts/AccountsValidation.php | |
@@ -44,4 +44,8 @@ if ($blockDuplicateAccounts and isset($screen_values['accountname'])) { | |
die; | |
} | |
} | |
+if (isset($screen_values['accountname']) and strpos($screen_values['accountname'], '"')!==false) { | |
+ echo "Sorry, but quotes are not permitted in the account name."; | |
+ die(); | |
+} | |
echo '%%%OK%%%'; | |
\ No newline at end of file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment