From 43c84ecbb4754caa0812884b96c5ecb4660921c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 3 Apr 2006 23:27:11 +0000 Subject: [PATCH] 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 --- src/preferences/filetypes/ApplicationTypeWindow.cpp | 2 +- src/preferences/filetypes/FileTypeWindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/preferences/filetypes/ApplicationTypeWindow.cpp b/src/preferences/filetypes/ApplicationTypeWindow.cpp index 1980970635..ada2417bc6 100644 --- a/src/preferences/filetypes/ApplicationTypeWindow.cpp +++ b/src/preferences/filetypes/ApplicationTypeWindow.cpp @@ -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]); } diff --git a/src/preferences/filetypes/FileTypeWindow.cpp b/src/preferences/filetypes/FileTypeWindow.cpp index fc25be7608..74627480cd 100644 --- a/src/preferences/filetypes/FileTypeWindow.cpp +++ b/src/preferences/filetypes/FileTypeWindow.cpp @@ -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]); }