1 new commit in addonFiles: https://bitbucket.org/nvdaaddonteam/addonfiles/commits/c16b969c5c63/ Changeset: c16b969c5c63 Branch: master User: mhameed Date: 2013-05-22 11:34:49 Summary: get.php: Add error messages. When we are unable to provide a file for download, attempt to provide a reason which will give us an idea of where to start debugging. Affected #: 1 file diff --git a/get.php b/get.php index 9d5f313..c64eb57 100755 --- a/get.php +++ b/get.php @@ -13,6 +13,20 @@ $addons = array( If (isset($_GET['file'])) { $file = $_GET['file']; - Header('Location:'.$addons[$file]); + $fullname = $addons[$file]; + + if ($fullname != "") { + Header('Location:'.$fullname); + } else { + print "<h1>File not found</h1>"; + print "<p>The file you requested could not be found on this server.</p>"; + print "<p>Please check that the link that brought you here is correct and try again.</p>"; + print "<p>Thanks</p>"; + } +} else { + print "<h1>Error:</h1>"; + print "<p>Please check that the link that brought you here is correct and try again.</p>"; + print "<p>If you continue to see this message report this error to the nvda addon list.</p>"; + print "<p>Thanks</p>"; } ?> Repository URL: https://bitbucket.org/nvdaaddonteam/addonfiles/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email. ---------------------------------------------------------------- NVDA add-ons Central: A list for discussing NVDA add-ons To post a message, send an email to nvda-addons@xxxxxxxxxxxxx. To unsubscribe, send an email with the subject line of "unsubscribe" (without quotes) to nvda-addons-request@xxxxxxxxxxxxx. If you have questions for list moderators, please send a message to nvda-addons-moderators@xxxxxxxxxxxxx.