Author: jochen Date: Mon Aug 2 10:08:42 2010 New Revision: 981442 URL: http://svn.apache.org/viewvc?rev=981442&view=rev Log: EOL fixes
Modified: commons/proper/fileupload/trunk/.project commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java (contents, props changed) Modified: commons/proper/fileupload/trunk/.project URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/.project?rev=981442&r1=981441&r2=981442&view=diff ============================================================================== --- commons/proper/fileupload/trunk/.project (original) +++ commons/proper/fileupload/trunk/.project Mon Aug 2 10:08:42 2010 @@ -11,12 +11,12 @@ </arguments> </buildCommand> <buildCommand> - <name>org.maven.ide.eclipse.maven2Builder</name> + <name>org.devzuz.q.maven.jdt.core.mavenIncrementalBuilder</name> <arguments> </arguments> </buildCommand> <buildCommand> - <name>org.devzuz.q.maven.jdt.core.mavenIncrementalBuilder</name> + <name>org.maven.ide.eclipse.maven2Builder</name> <arguments> </arguments> </buildCommand> Modified: commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java URL: http://svn.apache.org/viewvc/commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java?rev=981442&r1=981441&r2=981442&view=diff ============================================================================== --- commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java (original) +++ commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java Mon Aug 2 10:08:42 2010 @@ -1,50 +1,50 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package org.apache.commons.fileupload; - - -/** - * This exception is thrown in case of an invalid file name. - * A file name is invalid, if it contains a NUL character. - * Attackers might use this to circumvent security checks: - * For example, a malicious user might upload a file with the name - * "foo.exe\0.png". This file name might pass security checks (i.e. - * checks for the extension ".png"), while, depending on the underlying - * C library, it might create a file named "foo.exe", as the NUL - * character is the string terminator in C. - */ -public class InvalidFileNameException extends RuntimeException { - private static final long serialVersionUID = 7922042602454350470L; - private final String name; - - /** - * Creates a new instance. - * @param pName The file name causing the exception. - * @param pMessage A human readable error message. - */ - public InvalidFileNameException(String pName, String pMessage) { - super(pMessage); - name = pName; - } - - /** - * Returns the invalid file name. - */ - public String getName() { - return name; - } -} +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package org.apache.commons.fileupload; + + +/** + * This exception is thrown in case of an invalid file name. + * A file name is invalid, if it contains a NUL character. + * Attackers might use this to circumvent security checks: + * For example, a malicious user might upload a file with the name + * "foo.exe\0.png". This file name might pass security checks (i.e. + * checks for the extension ".png"), while, depending on the underlying + * C library, it might create a file named "foo.exe", as the NUL + * character is the string terminator in C. + */ +public class InvalidFileNameException extends RuntimeException { + private static final long serialVersionUID = 7922042602454350470L; + private final String name; + + /** + * Creates a new instance. + * @param pName The file name causing the exception. + * @param pMessage A human readable error message. + */ + public InvalidFileNameException(String pName, String pMessage) { + super(pMessage); + name = pName; + } + + /** + * Returns the invalid file name. + */ + public String getName() { + return name; + } +} Propchange: commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java ------------------------------------------------------------------------------ svn:eol-style = native Propchange: commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java ------------------------------------------------------------------------------ svn:keywords = Date Author Id Revision HeadURL Propchange: commons/proper/fileupload/trunk/src/java/org/apache/commons/fileupload/InvalidFileNameException.java ('svn:mime-type' removed)