diff --git a/VERSION b/VERSION index 7458e92d..0e6dd552 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.6-stable+timestamp.2013.04.19.23.45.56 +Version 2.4.6-stable+timestamp.2013.04.21.19.50.11 diff --git a/gluon/contrib/imageutils.py b/gluon/contrib/imageutils.py index 594fe521..ec40760d 100644 --- a/gluon/contrib/imageutils.py +++ b/gluon/contrib/imageutils.py @@ -51,7 +51,7 @@ def THUMB(image, nx=120, ny=120, gae=False, name='thumb'): request = current.request from PIL import Image import os - img = Image.open(request.folder + 'uploads/' + image) + img = Image.open(os.path.join(request.folder,'uploads',image)) img.thumbnail((nx, ny), Image.ANTIALIAS) root, ext = os.path.splitext(image) thumb = '%s_%s%s' % (root, name, ext)