OK, fixed.
I'll do new CR release, making it easy on everybody.
Is there any other dot feature out there that I should consider legal?
I'll still leave triple '...' and '..somepath' as illegal:
| else if (ch == '.')
| {
| int bufferLength = buffer.length();
|
| if (specialToken == null && bufferLength == 0)
| specialToken = CURRENT_PATH;
| else if (specialToken == CURRENT_PATH && bufferLength == 0)
| specialToken = REVERSE_PATH;
| else if (specialToken == REVERSE_PATH && bufferLength == 0)
| throw new IllegalArgumentException("Illegal token (" +
specialToken + ch + ") in path: " + path);
| else
| buffer.append(ch);
| }
| else
| {
| // token starts with '.' or '..', but also has some path
after that
| if (specialToken != null)
| {
| // we don't allow tokens after '..'
| if (specialToken == REVERSE_PATH)
| throw new IllegalArgumentException("Illegal token (" +
specialToken + ch + ") in path: " + path);
|
| // after '.' more path is legal == unix hidden directories
| buffer.append(specialToken);
| specialToken = null;
| }
| buffer.append(ch);
| }
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4187620#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...