I am having problems attaching some files.
When I try to attach a file that looks like name(WikiWord).txt the resulting html (in the show/hide attachments section) broken. I am using the default
PatternSkin
If the name does not have parentheses or the text inside the paren's is not a WikiWord, things work fine.
Here is the html of a working and nonworking attachment.
On the second line (the one that does not work), note the extra (and wrong) span tags around the filename.
<tr><td bgcolor="#FFFFFF" class="twikiFirstCol"> <img width="16" alt="txt" align="top" src="/twiki/pub/TWiki/TWikiDocGraphics/txt.gif" height="16" border="0" /><span class="twikiHidden">txt</span> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/viewfile/Sandbox/AttachProblem?rev=1;filename=T(wikiWord).txt">T(wikiWord).txt</a> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/attach/Sandbox/AttachProblem?filename=T(wikiWord).txt&revInfo=1" title='change, update, previous revisions, move, delete...'rel='nofollow'>manage</a> </td><td bgcolor="#FFFFFF" align="right"> 0.1 K </td><td bgcolor="#FFFFFF"> 07 Dec 2006 - 16:27 </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/view/Main/KevinKalmbach" class="twikiLink">KevinKalmbach</a> </td><td bgcolor="#FFFFFF"> </td></tr>
<tr><td bgcolor="#FFFFFF" class="twikiFirstCol"> <img width="16" alt="txt" align="top" src="/twiki/pub/TWiki/TWikiDocGraphics/txt.gif" height="16" border="0" /><span class="twikiHidden">txt</span> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/viewfile/Sandbox/AttachProblem?rev=1;filename=T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt">T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt</a> </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/attach/Sandbox/AttachProblem?filename=T(<span class="twikiNewLink">WikiWord<a rel="nofollow" href="/twiki/bin/edit/Sandbox/WikiWord?topicparent=Sandbox.AttachProblem" title="Create this topic"><sup>?</sup></a></span>).txt&revInfo=1" title='change, update, previous revisions, move, delete...'rel='nofollow'>manage</a> </td><td bgcolor="#FFFFFF" align="right"> 0.1 K </td><td bgcolor="#FFFFFF"> 07 Dec 2006 - 16:45 </td><td bgcolor="#FFFFFF"> <a href="/twiki/bin/view/Main/KevinKalmbach" class="twikiLink">KevinKalmbach</a> </td><td bgcolor="#FFFFFF"> </td></tr>
Thanks for all your help.
Attaching (
WikiWord).txt for demonstration.
--
SP