Fossil

Check-in [21780aef]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Also allow the '-' character in parameter and cookie names. This is necessary for the login cookie.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:21780aef9a48339c4db33634885cacab14721036fd3ba3a0f237dc5d2a521d14
User & Date: drh 2018-03-29 17:03:57
Context
2018-04-02
11:15
Update the built-in SQLite to version 3.23.0 final. check-in: 699cefc8 user: drh tags: trunk
2018-03-29
17:03
Also allow the '-' character in parameter and cookie names. This is necessary for the login cookie. check-in: 21780aef user: drh tags: trunk
15:42
Update the built-in SQLite to the second 3.23.0 beta. check-in: 032188a6 user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/blob.c.

117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
  return (c>='a' && c<='z') || (c>='A' && c<='Z') || (c>='0' && c<='9');
}

/* Return true if and only if the entire string consists of only
** alphanumeric characters.
*/
int fossil_no_strange_characters(const char *z){
  while( z && (fossil_isalnum(z[0]) || z[0]=='_') ) z++;
  return z[0]==0;
}


/*
** COMMAND: test-isspace
**







|







117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
  return (c>='a' && c<='z') || (c>='A' && c<='Z') || (c>='0' && c<='9');
}

/* Return true if and only if the entire string consists of only
** alphanumeric characters.
*/
int fossil_no_strange_characters(const char *z){
  while( z && (fossil_isalnum(z[0]) || z[0]=='_' || z[0]=='-') ) z++;
  return z[0]==0;
}


/*
** COMMAND: test-isspace
**