The '/' character obviously has to be allowed in MIME types.
This fixes bug #375. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16994 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -133,7 +133,7 @@ ApplicationTypeWindow::ApplicationTypeWindow(BPoint position, const BEntry& entr
|
||||
// filter out invalid characters that can't be part of a MIME type name
|
||||
BTextView* textView = fSignatureControl->TextView();
|
||||
textView->SetMaxBytes(B_MIME_TYPE_LENGTH);
|
||||
const char* disallowedCharacters = "/<>@,;:\"()[]?=";
|
||||
const char* disallowedCharacters = "<>@,;:\"()[]?=";
|
||||
for (int32 i = 0; disallowedCharacters[i]; i++) {
|
||||
textView->DisallowChar(disallowedCharacters[i]);
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ FileTypeWindow::FileTypeWindow(BPoint position, const BMessage& refs)
|
||||
|
||||
// filter out invalid characters that can't be part of a MIME type name
|
||||
BTextView* textView = fTypeControl->TextView();
|
||||
const char* disallowedCharacters = "/<>@,;:\"()[]?=";
|
||||
const char* disallowedCharacters = "<>@,;:\"()[]?=";
|
||||
for (int32 i = 0; disallowedCharacters[i]; i++) {
|
||||
textView->DisallowChar(disallowedCharacters[i]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user