Fixed bad captcha refresh code on registration page
authorDan
Tue, 01 Apr 2008 01:26:22 -0400
changeset 517 c6118b9e13bd
parent 516 9a52679143db
child 518 2b826f2640e9
child 520 4c16e87cfeae
Fixed bad captcha refresh code on registration page
plugins/SpecialUserFuncs.php
--- a/plugins/SpecialUserFuncs.php	Tue Apr 01 01:25:47 2008 -0400
+++ b/plugins/SpecialUserFuncs.php	Tue Apr 01 01:26:22 2008 -0400
@@ -1070,7 +1070,7 @@
           function regenCaptcha()
           {
             var frm = document.forms.regform;
-            document.getElementById('captchaimg').src = '<?php echo makeUrlNS("Special", "Captcha/"); ?>'+frm.captchahash.value+'/'+Math.floor(Math.random() * 100000);
+            document.getElementById('captchaimg').src = '<?php echo makeUrlNS("Special", "Captcha/$captchacode"); ?>/'+Math.floor(Math.random() * 100000);
             return false;
           }
           <?php if ( getConfig('pw_strength_enable') == '1' ): ?>