Fossil SCM
better quoting to make intent clearer, thanks to [forum:/forumpost/cf724a9bea]
Commit
3e16be4e027be739428ceff4ef582b1811f859171656979e983e3a1245c37226
Parent
ac848122fa4ee1a…
1 file changed
+2
-2
+2
-2
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -521,18 +521,18 @@ | ||
| 521 | 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | 523 | @ <th1> |
| 524 | 524 | @ set versionlink "" |
| 525 | 525 | @ set urlfoundin [httpize $foundin] |
| 526 | -@ set tagpattern ^\[-0-9A-Za-z_\\.\]+\$ | |
| 526 | +@ set tagpattern {^[-0-9A-Za-z_\\.]+$} | |
| 527 | 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | 531 | @ } |
| 532 | 532 | @ } |
| 533 | -@ set hashpattern ^\[0-9a-f\]+\$ | |
| 533 | +@ set hashpattern {^[0-9a-f]+$} | |
| 534 | 534 | @ if [regexp $hashpattern $foundin] { |
| 535 | 535 | @ set pattern $foundin* |
| 536 | 536 | @ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} { |
| 537 | 537 | @ if {$match} {set versionlink "/info/$urlfoundin"} |
| 538 | 538 | @ } |
| 539 | 539 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -521,18 +521,18 @@ | |
| 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | @ <th1> |
| 524 | @ set versionlink "" |
| 525 | @ set urlfoundin [httpize $foundin] |
| 526 | @ set tagpattern ^\[-0-9A-Za-z_\\.\]+\$ |
| 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | @ } |
| 532 | @ } |
| 533 | @ set hashpattern ^\[0-9a-f\]+\$ |
| 534 | @ if [regexp $hashpattern $foundin] { |
| 535 | @ set pattern $foundin* |
| 536 | @ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} { |
| 537 | @ if {$match} {set versionlink "/info/$urlfoundin"} |
| 538 | @ } |
| 539 |
| --- src/tktsetup.c | |
| +++ src/tktsetup.c | |
| @@ -521,18 +521,18 @@ | |
| 521 | @ <tr><td class="tktDspLabel">Version Found In:</td> |
| 522 | @ <td colspan="3" valign="top" class="tktDspValue"> |
| 523 | @ <th1> |
| 524 | @ set versionlink "" |
| 525 | @ set urlfoundin [httpize $foundin] |
| 526 | @ set tagpattern {^[-0-9A-Za-z_\\.]+$} |
| 527 | @ if [regexp $tagpattern $foundin] { |
| 528 | @ query {SELECT count(*) AS match FROM tag |
| 529 | @ WHERE tagname=concat('sym-',$foundin)} { |
| 530 | @ if {$match} {set versionlink "/timeline?t=$urlfoundin"} |
| 531 | @ } |
| 532 | @ } |
| 533 | @ set hashpattern {^[0-9a-f]+$} |
| 534 | @ if [regexp $hashpattern $foundin] { |
| 535 | @ set pattern $foundin* |
| 536 | @ query {SELECT count(*) AS match FROM blob WHERE uuid GLOB $pattern} { |
| 537 | @ if {$match} {set versionlink "/info/$urlfoundin"} |
| 538 | @ } |
| 539 |