Allow for forward slashes in idents

This commit is contained in:
jgeboski 2012-07-30 19:18:19 -04:00 committed by Sebastian Kaspari
parent 0381728018
commit 1a43262cb5
1 changed files with 1 additions and 1 deletions

View File

@ -481,7 +481,7 @@ public class AddServerActivity extends SherlockActivity implements OnClickListen
}
// We currently only allow chars, numbers and some special chars for ident
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]\\-_]+$");
Pattern identPattern = Pattern.compile("^[a-zA-Z0-9\\[\\]\\-_/]+$");
if (!identPattern.matcher(ident).matches()) {
throw new ValidationException(getResources().getString(R.string.validation_invalid_ident));
}