Peter Sjöberg - 2008-02-24

Logged In: YES
user_id=733818
Originator: NO

Did a quick hack to at least not generate a ton of errors but I think the correct solution is to handle filename change.
This is against stock v4.1.3

--- uploadgedcom.php-orig 2008-02-23 22:11:56.000000000 -0500
+++ uploadgedcom.php 2008-02-23 22:12:47.000000000 -0500
@@ -558,7 +558,8 @@
$l_placecleanup = false;
$l_datecleanup = false;
$l_isansi = false;
- $fp = fopen($GEDCOMS[$GEDFILENAME]["path"], "r");
+ if(!($fp = fopen($GEDCOMS[$GEDFILENAME]["path"], "r")))
+ die ("File failed to open $GEDFILENAME. Note that when replacing a file the uploaded file must have EXACTLY the same name including case");
//-- read the gedcom and test it in 8KB chunks
while (!feof($fp)) {
$fcontents = fread($fp, 1024 * 8);