Class TableAndFieldNameValidator

java.lang.Object
com.atlassian.confluence.impl.backuprestore.helpers.TableAndFieldNameValidator

public class TableAndFieldNameValidator extends Object
Validates table and field names for illegal characters.
Since:
7.20.0
  • Field Details

    • TABLE_OR_FIELD_NAME_PATTERN

      public static final Pattern TABLE_OR_FIELD_NAME_PATTERN
  • Constructor Details

    • TableAndFieldNameValidator

      public TableAndFieldNameValidator()
  • Method Details

    • checkNameDoesNotHaveSqlInjections

      public static String checkNameDoesNotHaveSqlInjections(String tableOrFieldName)
      Checks that the SQL does not have any SQL injections.
      Returns:
      sql