aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_upload.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-16 14:45:13 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-16 14:45:13 +0000
commit38e08367d2f7dbf1127c8ac7912e9a0532d5f366 (patch)
tree7a012f465ac94e43928b7f7301d96d537d401147 /phpBB/includes/functions_upload.php
parent6814ab81d70ff7f614aedecae53b36445e6faeb2 (diff)
downloadforums-38e08367d2f7dbf1127c8ac7912e9a0532d5f366.tar
forums-38e08367d2f7dbf1127c8ac7912e9a0532d5f366.tar.gz
forums-38e08367d2f7dbf1127c8ac7912e9a0532d5f366.tar.bz2
forums-38e08367d2f7dbf1127c8ac7912e9a0532d5f366.tar.xz
forums-38e08367d2f7dbf1127c8ac7912e9a0532d5f366.zip
label changes, language fixes...
git-svn-id: file:///svn/phpbb/trunk@7608 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_upload.php')
-rw-r--r--phpBB/includes/functions_upload.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/phpBB/includes/functions_upload.php b/phpBB/includes/functions_upload.php
index 84afbbb9bd..93254a0d08 100644
--- a/phpBB/includes/functions_upload.php
+++ b/phpBB/includes/functions_upload.php
@@ -685,6 +685,12 @@ class fileupload
return $file;
}
+ // Make sure $path not beginning with /
+ if (strpos($path, '/') === 0)
+ {
+ $path = substr($path, 1);
+ }
+
fputs($fsock, 'GET /' . $path . " HTTP/1.1\r\n");
fputs($fsock, "HOST: " . $host . "\r\n");
fputs($fsock, "Connection: close\r\n\r\n");