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:
Axel Dörfler
2006-04-03 23:27:11 +00:00
parent 227bf1b686
commit 43c84ecbb4
2 changed files with 2 additions and 2 deletions
@@ -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]);
}
+1 -1
View File
@@ -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]);
}