Attachment 'modrewrite.diff'

Download

   1 --- request.py-dist	2007-01-03 12:04:56.000000000 +1300
   2 +++ request.py	2007-05-03 16:54:41.000000000 +1200
   3 @@ -370,6 +370,16 @@
   4  
   5          # REQUEST_URI is not part of CGI spec, but an addition of Apache.
   6          self.request_uri = env.get('REQUEST_URI', '')
   7 +
   8 +        # work around mod-rewrite bug which turns %3f into '?'
   9 +        # see http://issues.apache.org/bugzilla/show_bug.cgi?id=34602
  10 +        # and http://moinmoin.wikiwikiweb.de/MoinMoinBugs/CannotAccessPagesEndingWithAQuestionMark
  11 +        modrewrite_fix = True
  12 +        if modrewrite_fix:
  13 +            path = self.request_uri
  14 +            if path.find('?') != -1:
  15 +                path = path[:path.find('?')]
  16 +            self.path_info = wikiutil.url_unquote(path, want_unicode=False)
  17          
  18          # Values that need more work
  19          self.setHttpReferer(env.get('HTTP_REFERER'))

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2007-05-03 04:57:20, 0.8 KB) [[attachment:modrewrite.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.