Bug 119904; check for empty mime type strings properly; r=bzbarsky, sr=jag

This commit is contained in:
law%netscape.com 2002-01-16 06:30:40 +00:00
parent f6b4c94d4c
commit 92fcfab899

View File

@ -411,7 +411,7 @@ function removeOverride(aMIMEType)
function checkInput() {
var result = true;
// Check for empty MIME type field.
if ( gMIMEField.value == "" ) {
if ( gMIMEField.value.search(/\S/) == -1 ) {
// Input is not OK.
result = false;