[TYPO3-project-formidable] renderlet CAPTCHA - Bug: Non valid XHTML-Code - SOLUTION

Hauke Hain newgrp at googlemail.com
Wed Feb 25 14:54:15 CET 2009


Oh sorry for my fastshot.
In my source code I have the backslash, but in the mail I forgot it.
(I checked with the validator the site code and therefore I found the wrong 
</img>.)

It's good that theare are many eyes looking though the written code.

Hauke


"Luc Muller" <"l.muller[no]"@[spam]ameos.com> schrieb im Newsbeitrag 
news:mailman.1.1235550188.29981.typo3-project-formidable at lists.netfielders.de...
> > $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img'
> > src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."'
> > alt='captcha' />";
>
> this is what is going to be in the next release ;)
>
> Luc
>
> Manuel Rego Casasnovas a écrit :
>> Hi Hauke,
>>
>> On Tue, 24 Feb 2009 22:00:12 +0100
>> "Hauke Hain" <newgrp at googlemail.com> wrote:
>>> the following line has to be replaced by
>>> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
>>> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
>>> alt='captcha'></img>";
>>>
>>> this one:
>>> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
>>> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
>>> alt='captcha'>";
>>
>> This is not XHTML, you can check it at http://validator.w3.org/.
>>
>> If you're talking about XHTML you should close all the tags, so the
>> current solution is right, another option could be something like:
>> $aCaptcha["img"]="<img id='" . $this->_getElementHtmlId() . "img' 
>> src='".$_SESSION['cryptdir']."cryptographp.php?cfg=0&amp;".$iSID."' 
>> alt='captcha' />";
>>
>> Thanks for your comments.
>>
>> Best regards,
>>    Rego 



More information about the TYPO3-project-formidable mailing list