| 160 | 23a. Fix core.py |
| 161 | In F:\Python23\Lib\site-packages\trac\core.py, change the real_cgi_start function where it says |
| 162 | {{{ |
| 163 | path_info = os.getenv('PATH_INFO') |
| 164 | }}} |
| 165 | Change this to: |
| 166 | {{{ |
| 167 | path_info = os.getenv('PATH_INFO').replace(os.getenv('SCRIPT_NAME'),"") |
| 168 | }}} |
| 169 | |
| 170 | In the redirect function on the Request class, change the first part of the method to read: |
| 171 | {{{ |
| 172 | def redirect(self, url): |
| 173 | base_url = '%s://%s' % ("http", os.getenv('SERVER_NAME')) |
| 174 | self.send_response(302) |
| 175 | self.send_header('Location', base_url + url) |
| 176 | }}} |
| 177 | |