Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Change the way that user-agent restrictions are handled in althttpd.c. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
8d5d89e6db164590482827b0677e366d |
User & Date: | drh 2012-11-10 12:38:19.321 |
Context
2012-11-10
| ||
14:43 | althttpd.c changes: Send a 403 response to unauthorized agents. Add Ezoom to the list of unauthorized agents. Do not log timeouts if the first line of the HTTP request was never received. (check-in: d61bcab9f4 user: drh tags: trunk) | |
12:38 | Change the way that user-agent restrictions are handled in althttpd.c. (check-in: 8d5d89e6db user: drh tags: trunk) | |
12:23 | Disallow the "Download Master" user agent in althttpd.c. (check-in: e6b47e0290 user: drh tags: trunk) | |
Changes
Changes to misc/althttpd.c.
︙ | |||
157 158 159 160 161 162 163 | 157 158 159 160 161 162 163 164 165 166 167 168 169 170 | - - - - - - - - - - - - - | static void FixupUserAgent(void){ int i; if( zAgent==0 || zAgent[0]==0 ) zAgent = "*"; for(i=0; zAgent[i]; i++){ int c = zAgent[i]; if( c<'!' || c>'~' ){ zAgent[i] = '_'; } } |
︙ | |||
977 978 979 980 981 982 983 | 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 | - + + + + + + + + + + | zServerPort = StrDup(zRealPort); } }else if( strcasecmp(zFieldName,"Authorization:")==0 ){ zAuthType = GetFirstElement(StrDup(zVal), &zAuthArg); } } |
︙ |