Last modified: 2006-07-14 05:17:44 UTC
After blocking myself on a local test wiki, I tried editing a non-existent page
as a blocked anon. (In this example I went to:
The HTML returned when trying to do this seems to be missing a tag for closing
the text area. (As a result of this, the second half of the HTML is shown in the
textarea, and the navbar/footer/logo/etc are missing, in both Firefox & IE.)
I'll include the HTML that I'm seeing as an attachment shortly, but basically I
think the HTML seems to need an extra line, such as:
</p><textarea id="wpTextbox1" name="wpTextbox1" cols="80" rows="25"
+ Article does not exist</textarea>
Created attachment 2075 [details]
Example of HTML I'm seeing
Should be fixed in SVN trunk, r. As far as I can tell, the problem was due to
wfElement() receiving a blank string under those circumstances, which caused it
to output a single container tag. I've sanitised the behaviour of the edit form
when the page doesn't exist and the user is blocked.
As a further precaution, I've also modified that part of the code to use
wfOpenElement() and wfCloseElement() in an explicit manner, so if I've not
spotted another stupid case, then we should be covered.
[Brion: This one is probably worth backporting to REL1_7]
Ack, apologies; that was r15580 and r15581.
Thank you once again Rob!