summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
Diffstat (limited to 'web')
-rw-r--r--web/html/pkgsubmit.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index a413a073..0b9335b3 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -12,6 +12,8 @@ include_once("pkgfuncs.inc"); # package functions
set_lang(); # this sets up the visitor's language
check_sid(); # see if they're still logged in
+$cwd = getcwd();
+
if ($_COOKIE["AURSID"]):
# Track upload errors
@@ -421,7 +423,7 @@ if ($_COOKIE["AURSID"]):
}
}
- chdir($_SERVER['DOCUMENT_ROOT']);
+ chdir($cwd);
}
# Logic over, let's do some output