Fossil

Check-in [12272b7f]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Fix double LI tags when listing wiki attachments for users without permissions.
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 12272b7ff015a45a83cc925db2aa3e44227df3ad
User & Date: dmitry 2011-09-25 11:14:57.884
References
2011-09-27
00:34
merged in trunk [12272b7ff0]. ... (check-in: a5fd64d3 user: stephan tags: json)
Context
2011-09-27
00:34
merged in trunk [12272b7ff0]. ... (check-in: a5fd64d3 user: stephan tags: json)
2011-09-26
14:43
Add the test-list-webpage command. ... (check-in: 6a97d775 user: drh tags: trunk)
2011-09-25
11:14
Fix double LI tags when listing wiki attachments for users without permissions. ... (check-in: 12272b7f user: dmitry tags: trunk)
2011-09-24
01:39
Disable SSLv2 in HTTPS client. This version of the protocol is considered insecure and has been deprecated; all modern browsers disable it. ... (check-in: ea1d369d user: dmitry tags: trunk)
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/wiki.c.
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
    }
    cnt++;
    @ <li>
    if( g.perm.History && g.perm.Read ){
      @ <a href="%s(g.zTop)/attachview?page=%s(zPageName)&amp;file=%t(zFile)">
      @ %h(zFile)</a>
    }else{
      @ <li>%h(zFile)
    }
    @ added by %h(zUser) on
    hyperlink_to_date(zDate, ".");
    if( g.perm.WrWiki && g.perm.Attach ){
      @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
    }
    @ </li>







|







227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
    }
    cnt++;
    @ <li>
    if( g.perm.History && g.perm.Read ){
      @ <a href="%s(g.zTop)/attachview?page=%s(zPageName)&amp;file=%t(zFile)">
      @ %h(zFile)</a>
    }else{
      @ %h(zFile)
    }
    @ added by %h(zUser) on
    hyperlink_to_date(zDate, ".");
    if( g.perm.WrWiki && g.perm.Attach ){
      @ [<a href="%s(g.zTop)/attachdelete?page=%s(zPageName)&amp;file=%t(zFile)&amp;from=%s(g.zTop)/wiki%%3fname=%s(zPageName)">delete</a>]
    }
    @ </li>