diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-06-09 05:41:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-06-09 05:41:25 +0000 |
commit | 6c38bc57e879e989560bcdc146cb96d9d8d9284e (patch) | |
tree | cd621c48c8972547f09b90d7c13119c8d123ca56 /includes | |
parent | cf14d26cff310c170ea73221b906be569d91ef03 (diff) | |
download | brdo-6c38bc57e879e989560bcdc146cb96d9d8d9284e.tar.gz brdo-6c38bc57e879e989560bcdc146cb96d9d8d9284e.tar.bz2 |
- Patch #60441 by dopry: fixed file_create_url().
Diffstat (limited to 'includes')
-rw-r--r-- | includes/file.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/file.inc b/includes/file.inc index 7d23d4a7c..71ec3c06b 100644 --- a/includes/file.inc +++ b/includes/file.inc @@ -28,7 +28,7 @@ define('FILE_EXISTS_ERROR', 2); */ function file_create_url($path) { // Strip file_directory_path from $path. We only include relative paths in urls. - if (strpos($path, file_directory_path()) !== false) { + if (strpos($path, file_directory_path() . '/') === 0) { $path = trim(substr($path, strlen(file_directory_path())), '\\/'); } switch (variable_get('file_downloads', FILE_DOWNLOADS_PUBLIC)) { |