-rw-r--r-- | src/sitecing-plaincgi.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sitecing-plaincgi.cc b/src/sitecing-plaincgi.cc index 1cd99ac..6e8a215 100644 --- a/src/sitecing-plaincgi.cc +++ b/src/sitecing-plaincgi.cc | |||
@@ -47,13 +47,13 @@ void process_request(configuration& config) { | |||
47 | string action; | 47 | string action; |
48 | config_options::action_handler_t *action_handler; | 48 | config_options::action_handler_t *action_handler; |
49 | plaincgi_interface ci; | 49 | plaincgi_interface ci; |
50 | cgi_gateway gw(ci); | 50 | cgi_gateway gw(ci); |
51 | scif.prepare(&gw); | 51 | scif.prepare(&gw); |
52 | try { | 52 | try { |
53 | component_path = normalize_path(gw.get_meta("PATH_INFO"),strip_leading_slash|strip_trailing_slash); | 53 | component_path = normalize_path(gw.path_info(),strip_leading_slash|strip_trailing_slash); |
54 | string full_component_path; | 54 | string full_component_path; |
55 | while(true) { | 55 | while(true) { |
56 | full_component_path = config.root_source+'/'+component_path; | 56 | full_component_path = config.root_source+'/'+component_path; |
57 | if(!access(full_component_path.c_str(),F_OK)) | 57 | if(!access(full_component_path.c_str(),F_OK)) |
58 | break; | 58 | break; |
59 | string::size_type sl = component_path.rfind('/'); | 59 | string::size_type sl = component_path.rfind('/'); |