diff options
| author | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-24 08:08:31 -0500 |
|---|---|---|
| committer | dumpfmprod <dumpfmprod@ubuntu.(none)> | 2010-02-24 08:08:31 -0500 |
| commit | 699dc9c754b76490091b5f1108a05953f6b8272c (patch) | |
| tree | ea2ca63bee0921668e4fbe6f07abbc8a5adbbcb3 /static/js | |
| parent | 2b6c2cef9a3398dbafb1f6cfbc0323c0b83e2053 (diff) | |
Added filename check
Diffstat (limited to 'static/js')
| -rwxr-xr-x | static/js/pichat.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/static/js/pichat.js b/static/js/pichat.js index 3137ac4..641662f 100755 --- a/static/js/pichat.js +++ b/static/js/pichat.js @@ -291,8 +291,8 @@ function favoriteImage() {}; function setupUpload(elementId, roomKey) { var onSubmit = function(file, ext) { - if (!(ext && /^(jpg|png|jpeg|gif)$/i.test(ext))) { - alert('Error: invalid file extension ' + ext); + if (!(ext && /^(jpg|png|jpeg|gif|bmp)$/i.test(ext))) { + alert('SORRY, NOT AN IMAGE DUDE... '); return false; } }; |
