Commits

Anonymous committed efd170d

Ported [2901] and [2902] to 0.9-stable (fixing #2006 and #2544).

Comments (0)

Files changed (3)

htdocs/css/trac.css

 }
 input[type=text], input.textwidget, textarea { border: 1px solid #d7d7d7 }
 input[type=text], input.textwidget { padding: .25em .5em }
-input[type=text]:focus, textarea:focus { border: 1px solid #886 }
+input[type=text]:focus, input.textwidget:focus, textarea:focus {
+ border: 1px solid #886;
+}
 option { border-bottom: 1px dotted #d7d7d7 }
 fieldset { border: 1px solid #d7d7d7; padding: .5em; margin: 0 }
 fieldset.iefix { background: transparent; border: none; padding: 0; margin: 0 }
     weekdays = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
     months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep',
               'Oct', 'Nov', 'Dec']
-    return '%s, %d %s %04d %02d:%02d:%02d GMT' % (
+    return '%s, %02d %s %04d %02d:%02d:%02d GMT' % (
            weekdays[t.tm_wday], t.tm_mday, months[t.tm_mon - 1], t.tm_year,
            t.tm_hour, t.tm_min, t.tm_sec)
 

trac/web/cgi_frontend.py

             self.path_info = self.path_info[len(env_path):]
             self.cgi_location += env_path
 
-
-
     def _getFieldStorage(self):
         return TracFieldStorage(self.__input, environ=self.__environ,
-                                keep_blank_values=1)
+                                keep_blank_values=True)
 
     def read(self, len):
         return self.__input.read(len)
 
     def end_headers(self):
         self.write('\r\n')
+        self.__output.flush()
 
 
 class TracFieldStorage(cgi.FieldStorage):
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.