Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| Comment: | Fix chat so that it detects hyperlinks at the end of a chat message. |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
6f4fdfcd6ffdbcfc20000cc4c07cb61c |
| User & Date: | drh 2020-12-24 18:46:38.535 |
Context
|
2020-12-24
| ||
| 19:00 | Show the number of chat messages and the amount of storage space used by chat on the /stat page. ... (check-in: 4da6a4cce0 user: drh tags: trunk) | |
| 18:46 | Fix chat so that it detects hyperlinks at the end of a chat message. ... (check-in: 6f4fdfcd6f user: drh tags: trunk) | |
| 17:46 | Fix a problem with web-browser launch on Windows for "fossil chat". ... (check-in: dcc854a98b user: drh tags: trunk) | |
Changes
Changes to src/chat.c.
| ︙ | ︙ | |||
297 298 299 300 301 302 303 |
j = k+1;
continue;
}
}else if( zSafe[i]=='h'
&& (strncmp(zSafe+i,"http:",5)==0
|| strncmp(zSafe+i,"https:",6)==0) ){
for(k=i+1; zSafe[k] && !fossil_isspace(zSafe[k]); k++){}
| | | 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 |
j = k+1;
continue;
}
}else if( zSafe[i]=='h'
&& (strncmp(zSafe+i,"http:",5)==0
|| strncmp(zSafe+i,"https:",6)==0) ){
for(k=i+1; zSafe[k] && !fossil_isspace(zSafe[k]); k++){}
if( k>i+7 ){
char c = zSafe[k];
if( !fossil_isalnum(zSafe[k-1]) && zSafe[k-1]!='/' ){
k--;
c = zSafe[k];
}
if( j<i ){
blob_append(&out, zSafe + j, i-j);
|
| ︙ | ︙ |