Mercurial > traipse_dev
diff orpg/mapper/miniatures_handler.py @ 12:c056e967907a traipse_dev
I said, 'let the users have freedom' and it was it writ in code
No more stagnant directorys inside webfiles. Make your own!
**webfiles is for security**
author | sirebral |
---|---|
date | Fri, 17 Jul 2009 09:03:41 -0500 |
parents | 292e064396e4 |
children | 0b8b7e3ed78d |
line wrap: on
line diff
--- a/orpg/mapper/miniatures_handler.py Fri Jul 17 08:34:18 2009 -0500 +++ b/orpg/mapper/miniatures_handler.py Fri Jul 17 09:03:41 2009 -0500 @@ -165,13 +165,7 @@ min_url = open_rpg.get_component("cherrypy") + filename except: return - if dlg.GetDirectory() == orpg.dirpath.dir_struct["user"]+'webfiles' + os.sep +' Textures': - min_url = open_rpg.get_component("cherrypy") + 'Textures/' + filename - if dlg.GetDirectory() == orpg.dirpath.dir_struct["user"]+'webfiles' + os.sep + 'Maps': - min_url = open_rpg.get_component("cherrypy") + 'Maps/' + filename - if dlg.GetDirectory() == orpg.dirpath.dir_struct["user"]+'webfiles' + os.sep + 'Miniatures': - min_url = open_rpg.get_component("cherrypy") + 'Miniatures/' + filename - + min_url = dlg.GetDirectory().replace(orpg.dirpath.dir_struct["user"]+'webfiles' + os.sep, open_rpg.get_component("cherrypy")) + '/' + filename # build url if min_url == "" or min_url == "http://": return