Skip to content

Commit

Permalink
Merge branch 'CleverReach'
Browse files Browse the repository at this point in the history
  • Loading branch information
xxxmicrobexxx committed Nov 26, 2024
2 parents 36bf8d4 + e750b49 commit a8de4aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
6 changes: 3 additions & 3 deletions includes/class.mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -369,9 +369,9 @@ public static function add2CleverReach( $clientID, $clientSecret, $groupID, $ema
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'grant_type' => 'client_credentials',
'client_id' => $clientID
'client_secret' => $clientSecret
'grant_type' => 'client_credentials',
'client_id' => 'ugdVfKvdSD',
'client_secret' => 'oHT3qowmSImPQDvQZdEHjo0OWDM5i15M'
]));

curl_setopt($ch, CURLOPT_HTTPHEADER, [
Expand Down
4 changes: 3 additions & 1 deletion includes/class.signature.php
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,9 @@ public function has_unique_email( $email, $petition_id, $hide_email )
public function populate_from_post()
{
$this->petitions_id = sanitize_text_field( $_POST['id'] );
$this->honorific = sanitize_text_field( $_POST['honorific'] );
if($this->honorific > ""){
$this->honorific = sanitize_text_field( $_POST['honorific'] );
}
$this->first_name = sanitize_text_field( $_POST['first_name'] );
$this->last_name = sanitize_text_field( $_POST['last_name'] );
$this->email = sanitize_email( $_POST['email'] );
Expand Down
3 changes: 2 additions & 1 deletion js/admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,8 @@ jQuery(document).ready(function ($) {

$('.dk-speakout-error').removeClass('dk-speakout-error');
var errors = 0,
emailRegEx = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,6})?$/,
//emailRegEx = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,6})?$/,
emailRegEx = /^([\w+-.]+@([\w-]+\.)+[\w-]{2,6})?$/,
email = $('#dk-speakout-edit-petition #target_email').val(),
emailCC = $('#dk-speakout-edit-petition #target_email_CC').val(),
subject = $('#dk-speakout-edit-petition #email_subject').val(),
Expand Down

0 comments on commit a8de4aa

Please sign in to comment.