Overview
SHA1 Hash: | 4165033b4030ce9dc3dd4a71ed0acc870a32fb13 |
---|---|
Date: | 2009-10-31 13:23:28 |
User: | drh |
Comment: | Remove the extra space character before filenames in web directory
listings. Ticket |
Timelines: | ancestors | descendants | both | trunk |
Other Links: | files | ZIP archive | manifest |
Tags And Properties
- branch=trunk inherited from [a28c83647d]
- sym-trunk inherited from [a28c83647d]
Changes
[hide diffs]Modified src/browse.c from [b26f9d5a29] to [ec45ae29e1].
@@ -213,28 +213,26 @@ nRow = (cnt+nCol-1)/nCol; db_prepare(&q, "SELECT x, u FROM localfiles ORDER BY x"); @ <table border="0" width="100%%"><tr><td valign="top" width="25%%"> i = 0; while( db_step(&q)==SQLITE_ROW ){ - const char *zFName; + const char *zFN; if( i==nRow ){ @ </td><td valign="top" width="25%%"> i = 0; } i++; - zFName = db_column_text(&q, 0); - if( zFName[0]=='/' ){ - zFName++; - @ <li><a href="%s(zSubdirLink)%T(zFName)"> - @ %h(zFName)/</a></li> + zFN = db_column_text(&q, 0); + if( zFN[0]=='/' ){ + zFN++; + @ <li><a href="%s(zSubdirLink)%T(zFN)">%h(zFN)/</a></li> }else if( zCI ){ const char *zUuid = db_column_text(&q, 1); - @ <li><a href="%s(g.zBaseURL)/artifact?name=%s(zUuid)">%h(zFName)</a> + @ <li><a href="%s(g.zBaseURL)/artifact?name=%s(zUuid)">%h(zFN)</a> }else{ - @ <li><a href="%s(g.zBaseURL)/finfo?name=%T(zPrefix)%T(zFName)"> - @ %h(zFName)</a></li> + @ <li><a href="%s(g.zBaseURL)/finfo?name=%T(zPrefix)%T(zFN)">%h(zFN)</a> } } db_finalize(&q); @ </td></tr></table> style_footer(); }