Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Changes In Branch ticket-897c39d284 Excluding Merge-Ins
This is equivalent to a diff from 21f8161e8e to d5453ca06a
2012-10-24
| ||
13:43 | Removing superfluous parenthesis in html output. check-in: ad9cf1cad6 user: viriketo tags: trunk | |
07:42 | relax Wiki name restriction Leaf check-in: d5453ca06a user: jan.nijtmans tags: ticket-897c39d284 | |
2012-10-23
| ||
18:20 | Simplifications to the checkout-db schema auto-update mechanism. check-in: 21f8161e8e user: drh tags: trunk | |
13:54 | Fix source code formatting in winhttp.c. check-in: 9d8bdc90f9 user: drh tags: trunk | |
Changes to src/wiki.c.
25 25 26 26 /* 27 27 ** Return true if the input string is a well-formed wiki page name. 28 28 ** 29 29 ** Well-formed wiki page names do not begin or end with whitespace, 30 30 ** and do not contain tabs or other control characters and do not 31 31 ** contain more than a single space character in a row. Well-formed 32 -** names must be between 3 and 100 chracters in length, inclusive. 32 +** names must be between 1 and 100 chracters in length, inclusive. 33 33 */ 34 34 int wiki_name_is_wellformed(const unsigned char *z){ 35 35 int i; 36 36 if( z[0]<=0x20 ){ 37 37 return 0; 38 38 } 39 39 for(i=1; z[i]; i++){ 40 40 if( z[i]<0x20 ) return 0; 41 41 if( z[i]==0x20 && z[i-1]==0x20 ) return 0; 42 42 } 43 43 if( z[i-1]==' ' ) return 0; 44 - if( i<3 || i>100 ) return 0; 44 + if( i<1 || i>100 ) return 0; 45 45 return 1; 46 46 } 47 47 48 48 /* 49 49 ** Output rules for well-formed wiki pages 50 50 */ 51 51 static void well_formed_wiki_name_rules(void){ 52 52 @ <ul> 53 53 @ <li> Must not begin or end with a space.</li> 54 54 @ <li> Must not contain any control characters, including tab or 55 55 @ newline.</li> 56 56 @ <li> Must not have two or more spaces in a row internally.</li> 57 - @ <li> Must be between 3 and 100 characters in length.</li> 57 + @ <li> Must be between 1 and 100 characters in length.</li> 58 58 @ </ul> 59 59 } 60 60 61 61 /* 62 62 ** Check a wiki name. If it is not well-formed, then issue an error 63 63 ** and return true. If it is well-formed, return false. 64 64 */