X-Git-Url: https://git.p6c8.net/form-email.git/blobdiff_plain/c715b5507a92eea0180b640db399e0144e100bf6..beba1c3cc4bb271923f1f6d0f14d8a76885cd489:/form-email/functions.php
diff --git a/form-email/functions.php b/form-email/functions.php
index 2374b7b..e746a7e 100644
--- a/form-email/functions.php
+++ b/form-email/functions.php
@@ -66,7 +66,7 @@ function formdata($param) {
#
# Rueckgabe: Bearbeiteter Text (String)
-function &plain(&$text,$linebreak='
') {
+function plain($text,$linebreak='
') {
$htmltext = htmlspecialchars($text);
$htmltext = preg_replace("/\015\012|\012|\015/",$linebreak,$htmltext);
@@ -103,7 +103,7 @@ function semicolon_split($string) {
#
# Parameter: Fehlermeldung
-function show_fatal(&$errmsg,$vars=array()) {
+function show_fatal($errmsg,$vars=array()) {
global $tpl_fatal;
$tpl = new Template;
@@ -111,7 +111,7 @@ function show_fatal(&$errmsg,$vars=array()) {
if(sizeof($vars) > 0) {
while(list($var,$content) = each($vars)) {
- $errmsg = str_replace('{'.htmlspecialchars($var).'}',htmlspecialchars($content),$errmsg);
+ $errmsg = str_replace('{'.$var.'}',htmlspecialchars($content),$errmsg);
}
}
@@ -130,7 +130,7 @@ function show_fatal(&$errmsg,$vars=array()) {
#
# Parameter: Fehlermeldung
-function show_user_error(&$errmsg) {
+function show_user_error($errmsg) {
global $captcha_enable, $email, $name, $subject, $text, $user_fields, $tpl_user_error;
$tpl = new Template;