summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMacil Tech <maciltech@gmail.com>2013-06-18 11:58:32 -0500
committerMacil Tech <maciltech@gmail.com>2013-06-18 11:58:32 -0500
commita5e5cd03e6936e17b91acfb485c7e8a19b4c0b2a (patch)
tree1efc72c1bcfb1558d1a50f350087916ef6d0fe22 /templates
parent4ad1ce13b1b7743ef13c27ecf425e13c4e4b2a33 (diff)
Don't forget secure tripcode that's preceded by a space.
Mod capcodes are not remembered in the posting form.
Diffstat (limited to 'templates')
-rw-r--r--templates/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/main.js b/templates/main.js
index b0a96393..9ec0025f 100644
--- a/templates/main.js
+++ b/templates/main.js
@@ -105,7 +105,7 @@ function generatePassword() {
function dopost(form) {
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') {
localStorage.email = form.elements['email'].value;