~ubuntu-branches/ubuntu/trusty/tomcat7/trusty-security

« back to all changes in this revision

Viewing changes to java/org/apache/catalina/valves/AccessLogValve.java

  • Committer: Package Import Robot
  • Author(s): tony mancill
  • Date: 2012-06-07 22:43:21 UTC
  • mfrom: (11.1.4 sid)
  • Revision ID: package-import@ubuntu.com-20120607224321-cfev8j681yueyov3
Tags: 7.0.27-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
 * @author Takayuki Kaneko
154
154
 * @author Peter Rossbach
155
155
 *
156
 
 * @version $Id: AccessLogValve.java 1241091 2012-02-06 17:37:45Z rjung $
 
156
 * @version $Id: AccessLogValve.java 1301255 2012-03-15 22:47:40Z markt $
157
157
 */
158
158
 
159
159
public class AccessLogValve extends ValveBase implements AccessLog {
1638
1638
                // Protect against nulls and unexpected types as these values
1639
1639
                // may be set by untrusted applications
1640
1640
                Object start = request.getAttribute(
1641
 
                        "org.apache.tomcat.sendfile.start");
 
1641
                        Globals.SENDFILE_FILE_START_ATTR);
1642
1642
                if (start instanceof Long) {
1643
1643
                    Object end = request.getAttribute(
1644
 
                            "org.apache.tomcat.sendfile.end");
 
1644
                            Globals.SENDFILE_FILE_END_ATTR);
1645
1645
                    if (end instanceof Long) {
1646
1646
                        length = ((Long) end).longValue() -
1647
1647
                                ((Long) start).longValue();