Fossil

Check-in [6f4fdfcd6f]
Login

Check-in [6f4fdfcd6f]

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: 6f4fdfcd6ffdbcfc20000cc4c07cb61c2e944db2e3ed90f395683b2f84f76272
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
Unified Diff Ignore Whitespace Patch
Changes to src/chat.c.
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( zSafe[k] && 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);







|







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);