I think that line 135 in attach should be...
$tmpl = &TWiki::Store::readTemplate( "attach", $skin ); #sr removed spurious "" param
-- SteveRoe - 19 Jul 2001
Thanks for discovering this. I must have missed this one while refactoring the code. Fixed and in TWikiAlphaRelease.
-- PeterThoeny - 19 Jul 2001