mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-13 10:25:01 +00:00
Bug 119904; check for empty mime type strings properly; r=bzbarsky, sr=jag
This commit is contained in:
parent
f6b4c94d4c
commit
92fcfab899
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user