1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-31 12:23:48 +01:00

Don't forget secure tripcode that's preceded by a space.

Mod capcodes are not remembered in the posting form.
This commit is contained in:
Macil Tech 2013-06-18 11:58:32 -05:00
parent 4ad1ce13b1
commit a5e5cd03e6

View File

@ -105,7 +105,7 @@ function generatePassword() {
function dopost(form) { function dopost(form) {
if (form.elements['name']) { if (form.elements['name']) {
localStorage.name = form.elements['name'].value.replace(/ ##.+$/, ''); localStorage.name = form.elements['name'].value.replace(/( |^)## .+$/, '');
} }
if (form.elements['email'] && form.elements['email'].value != 'sage') { if (form.elements['email'] && form.elements['email'].value != 'sage') {
localStorage.email = form.elements['email'].value; localStorage.email = form.elements['email'].value;