Skip to content

Commit f6cb20f

Browse files
committed
update
1 parent 0c45afa commit f6cb20f

3 files changed

Lines changed: 8 additions & 10 deletions

File tree

assets/snippets/eform/eform.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ function eForm($modx,$params) {
332332
switch ($datatype) {
333333

334334
case "integer":
335-
$value = number_format( (float) $value); //EM~
335+
$value = number_format((float) $value, 0, '.', '');
336336
break;
337337
case "float":
338338
$localeInfo = localeconv();
@@ -714,11 +714,11 @@ function formMerge($docText, $docFields) {
714714
function AddAddressToMailer(&$mail,$type,$addr){
715715
if(empty($addr)) return;
716716
$a = array_filter(array_map('trim', explode(',', $addr)));
717-
for($i=0;$i<count($a);$i++){
718-
if ($type=="to") $mail->AddAddress($a[$i]);
719-
elseif ($type=="cc") $mail->AddCC($a[$i]);
720-
elseif ($type=="bcc") $mail->AddBCC($a[$i]);
721-
elseif ($type=="replyto") $mail->AddReplyTo($a[$i]);
717+
foreach($a as $v){
718+
if ($type=='to') $mail->AddAddress($v);
719+
elseif ($type=='cc') $mail->AddCC($v);
720+
elseif ($type=='bcc') $mail->AddBCC($v);
721+
elseif ($type=='replyto') $mail->AddReplyTo($v);
722722
}
723723
}
724724

assets/snippets/eform/snippet.eform.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,3 +115,4 @@
115115

116116
# Return
117117
return $output;
118+
?>

manager/includes/protect.inc.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,7 @@
1717

1818
// Unregister globals
1919
if (@ ini_get('register_globals')) {
20-
foreach ($_REQUEST as $key => $value) {
21-
$$key = null; // This is NOT paranoid because
22-
unset ($$key); // unset may not work.
23-
}
20+
die();
2421
}
2522

2623
global $sanitize_seed;

0 commit comments

Comments
 (0)