summaryrefslogtreecommitdiffstats
path: root/web/html
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2011-01-25 10:45:52 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2011-01-25 10:45:52 +0100
commit389d3a552e36e52b97281f0c083631c15cf8690e (patch)
tree5fe58834974615b98369c4a55caaac5d436c1106 /web/html
parent2c098d73a233d329bacd4af5946ad97f6496a438 (diff)
downloadaur-389d3a552e36e52b97281f0c083631c15cf8690e.tar.gz
aur-389d3a552e36e52b97281f0c083631c15cf8690e.tar.xz
Replaced rm_rf() by rm_tree().
Implemented recursive directory deletion in PHP properly without the use of exec(). This improves security, performance and portability and makes the code compatible with PHP's Safe Mode as well as with PHP setups that disable exec() using the "disable_functions" directive. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/html')
-rw-r--r--web/html/pkgsubmit.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/html/pkgsubmit.php b/web/html/pkgsubmit.php
index cdcc5103..c39e2f9e 100644
--- a/web/html/pkgsubmit.php
+++ b/web/html/pkgsubmit.php
@@ -216,7 +216,7 @@ if ($_COOKIE["AURSID"]):
if (can_submit_pkg($pkg_name, $_COOKIE["AURSID"])) {
if (file_exists($incoming_pkgdir)) {
# Blow away the existing file/dir and contents
- rm_rf($incoming_pkgdir);
+ rm_tree($incoming_pkgdir);
}
if (!@mkdir($incoming_pkgdir)) {