Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | ded8615f952666328b656e506fe4eedb516cd21f |
|---|---|
| Date: | 2012-07-20 14:54:45 |
| User: | drh |
| Comment: | Change the "dir" webpage to require read permission. |
Tags And Properties
- branch=trunk inherited from [bf1c21ba16]
- sym-trunk inherited from [bf1c21ba16]
Changes
Changes to src/browse.c
118 int rid = 0; 118 int rid = 0; 119 char *zUuid = 0; 119 char *zUuid = 0; 120 Blob dirname; 120 Blob dirname; 121 Manifest *pM = 0; 121 Manifest *pM = 0; 122 const char *zSubdirLink; 122 const char *zSubdirLink; 123 123 124 login_check_credentials(); 124 login_check_credentials(); 125 if( !g.perm.Hyperlink ){ login_needed(); return; } | 125 if( !g.perm.Read ){ login_needed(); return; } 126 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } 126 while( nD>1 && zD[nD-2]=='/' ){ zD[(--nD)-1] = 0; } 127 style_header("File List"); 127 style_header("File List"); 128 sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, 128 sqlite3_create_function(g.db, "pathelement", 2, SQLITE_UTF8, 0, 129 pathelementFunc, 0, 0); 129 pathelementFunc, 0, 0); 130 130 131 /* If the name= parameter is an empty string, make it a NULL pointer */ 131 /* If the name= parameter is an empty string, make it a NULL pointer */ 132 if( zD && strlen(zD)==0 ){ zD = 0; } 132 if( zD && strlen(zD)==0 ){ zD = 0; }