Skip to content
Permalink
Browse files

Submit file hackfix

  • Loading branch information...
Marlamin committed Nov 6, 2019
1 parent 056e515 commit 3e2faa2013dc3bde26a818cf11211bca30186226
Showing with 14 additions and 2 deletions.
  1. +14 −2 files/submitFiles.php
@@ -44,7 +44,13 @@
$log[] = "Adding <kbd>".$fname."</kbd> to ".$fdid;
$suggestedfiles[$fdid] = $fname;
}else{
$log[] = "<b>WARNING!</b> Submitted fileDataID ".$fdid." or filename <kbd>".$fname."</kbd> conflicts with FileDataID " . $cr['id'] . " or filename <kbd>" . $cr['filename']."</kbd>, skipping!";
if(!empty($cr['filename']))
{
$log[] = "<b>WARNING!</b> Submitted fileDataID ".$fdid." or filename <kbd>".$fname."</kbd> conflicts with FileDataID " . $cr['id'] . " or filename <kbd>" . $cr['filename']."</kbd>, skipping!";
}else{
$log[] = "Adding <kbd>".$fname."</kbd> to ".$fdid;
$suggestedfiles[$fdid] = $fname;
}
}
}else if($knownfiles[$fdid] != $fname){
@@ -67,7 +73,13 @@
$log[] = "Adding entirely new file <kbd>".$fname."</kbd> to new filedataid ".$fdid;
$suggestedfiles[$fdid] = $fname;
}else{
$log[] = "<b>WARNING!</b> Submitted fileDataID ".$fdid." or filename <kbd>".$fname."</kbd> conflicts with FileDataID " . $cr['id'] . " or filename <kbd>" . $cr['filename']."</kbd>, skipping!";
if(!empty($cr['filename']))
{
$log[] = "<b>WARNING!</b> Submitted fileDataID ".$fdid." or filename <kbd>".$fname."</kbd> conflicts with FileDataID " . $cr['id'] . " or filename <kbd>" . $cr['filename']."</kbd>, skipping!";
}else{
$log[] = "Adding <kbd>".$fname."</kbd> to ".$fdid;
$suggestedfiles[$fdid] = $fname;
}
}
}
}

0 comments on commit 3e2faa2

Please sign in to comment.
You can’t perform that action at this time.