summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--downloadgedcom.php2
-rw-r--r--includes/functions/functions_export.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/downloadgedcom.php b/downloadgedcom.php
index facb69eb27..613b9e47b7 100644
--- a/downloadgedcom.php
+++ b/downloadgedcom.php
@@ -39,7 +39,7 @@ $action = safe_GET('action', 'download');
$convert = safe_GET('convert', 'yes', 'no');
$zip = safe_GET('zip', 'yes', 'no');
$conv_path = safe_GET('conv_path', WT_REGEX_NOSCRIPT);
-$conv_slashes = safe_GET('conv_slashes', array('forward', 'backward'));
+$conv_slashes = safe_GET('conv_slashes', array('forward', 'backward'), 'forward');
$privatize_export = safe_GET('privatize_export', array('none', 'visitor', 'user', 'gedadmin'));
$conv_path = stripLRMRLM($conv_path);
diff --git a/includes/functions/functions_export.php b/includes/functions/functions_export.php
index 7a83affb3e..29f2bb1d2f 100644
--- a/includes/functions/functions_export.php
+++ b/includes/functions/functions_export.php
@@ -165,7 +165,7 @@ function convert_media_path($rec, $path, $slashes) {
$new_file_name=preg_replace('~\\+~', '/', $new_file_name);
break;
}
- $rec=str_replace('\n1 FILE '.$old_file_name, '\n1 FILE '.$new_file_name, $rec);
+ $rec=str_replace("\n1 FILE ".$old_file_name, "\n1 FILE ".$new_file_name, $rec);
}
}
return $rec;