Documentation Source Text

Check-in [8822607ccf]
Login

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

Overview
Comment:Convert HTML ampersand-values "&lt;", "&gt;", and "&amp;" into "<", ">", and "&" prior to computing the hash for a requirement.
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 8822607ccf23be0b5ee9fcbfd9f683082e8ddcb8
User & Date: drh 2009-12-31 15:28:35
Context
2009-12-31
15:51
Another patch needed for the ampersand-escape mapping. check-in: af45a586ba user: drh tags: trunk
15:28
Convert HTML ampersand-values "&lt;", "&gt;", and "&amp;" into "<", ">", and "&" prior to computing the hash for a requirement. check-in: 8822607ccf user: drh tags: trunk
14:47
Clarifications on affinity handling in the datatype3.html document. check-in: e62a74f31a user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to matrix.tcl.

    61     61         puts "$srcfile: bad requirement: [string range $nx 0 40]..."
    62     62         set x $nx
    63     63         continue
    64     64       }
    65     65       set orig [string trim $req]
    66     66       regsub -all {<.+?>} $orig {} req
    67     67       regsub -all {\s+} [string trim $req] { } req
           68  +    set req [string map {&lt; < &gt; > &amp; &} $req]
    68     69       set req [string trim $req]
    69     70       set reqno R-[md5-10x8 $req]
    70     71       db eval {SELECT srcfile AS s2, reqtext as r2
    71     72                FROM requirement WHERE reqno=$reqno} {
    72     73         puts "$srcfile: duplicate [string range $reqno 0 12] in $s2: \[$r2\]"
    73     74       }
    74     75       db eval {