Changeset 4892


Ignore:
Timestamp:
Apr 8, 2009, 10:05:18 AM (14 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1296: Disallow quote characters in file names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/net/sf/basedb/core/Path.java

    r4889 r4892  
    5656    {@value}
    5757  */
    58   public static final String INVALID_CHARACTERS = "~\\/:;*?<>|";
     58  public static final String INVALID_CHARACTERS = "~\\/:;*?<>|\"";
    5959
    6060  /**
    6161    A regexp checking for invalid characters.
    6262  */
    63   private static final Pattern invalid = Pattern.compile("[\\~\\\\\\/\\:\\;\\*\\?\\<\\>\\|]+");
     63  private static final Pattern invalid = Pattern.compile("[\\~\\\\\\/\\:\\;\\*\\?\\<\\>\\|\\\"]+");
    6464
    6565  /**
Note: See TracChangeset for help on using the changeset viewer.