version 1.1.2.2, 2013/08/13 09:30:00
|
version 1.1.2.3, 2013/09/18 06:29:19
|
|
|
*/ | */ |
String webRoot = _webConfig.getWebRoot(); | String webRoot = _webConfig.getWebRoot(); |
String fullPath = (webRoot + fileName); | String fullPath = (webRoot + fileName); |
String resolvedPath = FileSystem::getAbsoluteFileName(fullPath); |
String resolvedPath = FileSystem::getAbsoluteFileName(webRoot,fileName); |
| |
if (FileSystem::isDirectory((const String&)resolvedPath)) | if (FileSystem::isDirectory((const String&)resolvedPath)) |
{// it is not allowed to access directories, error 403 | {// it is not allowed to access directories, error 403 |