Fossil SCM
Fix a minor problem with Write-Unver reporting on the security audit report.
Commit
5c999558ffb220a19ffc58a6c028ee2de760deb9c9a26dcfe3a32f69b5064427
Parent
59a51b8267da458…
1 file changed
+1
-3
+1
-3
| --- src/security_audit.c | ||
| +++ src/security_audit.c | ||
| @@ -244,13 +244,11 @@ | ||
| 244 | 244 | @ (%s(z)). Ideally, the Write-Unver privilege should only be |
| 245 | 245 | @ granted to specific individuals. |
| 246 | 246 | fossil_free(z); |
| 247 | 247 | } |
| 248 | 248 | n = db_int(0,"SELECT count(*) FROM user WHERE cap GLOB '*y*'"); |
| 249 | - if( n>3 ){ | |
| 250 | - @ <li><p> | |
| 251 | - }else if( n>0 ){ | |
| 249 | + if( n>0 ){ | |
| 252 | 250 | z = db_text(0, |
| 253 | 251 | "SELECT group_concat(" |
| 254 | 252 | "printf('<a href=''setup_uedit?id=%%d''>%%s</a>',uid,login),', ')" |
| 255 | 253 | " FROM user WHERE cap GLOB '*y*'" |
| 256 | 254 | ); |
| 257 | 255 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -244,13 +244,11 @@ | |
| 244 | @ (%s(z)). Ideally, the Write-Unver privilege should only be |
| 245 | @ granted to specific individuals. |
| 246 | fossil_free(z); |
| 247 | } |
| 248 | n = db_int(0,"SELECT count(*) FROM user WHERE cap GLOB '*y*'"); |
| 249 | if( n>3 ){ |
| 250 | @ <li><p> |
| 251 | }else if( n>0 ){ |
| 252 | z = db_text(0, |
| 253 | "SELECT group_concat(" |
| 254 | "printf('<a href=''setup_uedit?id=%%d''>%%s</a>',uid,login),', ')" |
| 255 | " FROM user WHERE cap GLOB '*y*'" |
| 256 | ); |
| 257 |
| --- src/security_audit.c | |
| +++ src/security_audit.c | |
| @@ -244,13 +244,11 @@ | |
| 244 | @ (%s(z)). Ideally, the Write-Unver privilege should only be |
| 245 | @ granted to specific individuals. |
| 246 | fossil_free(z); |
| 247 | } |
| 248 | n = db_int(0,"SELECT count(*) FROM user WHERE cap GLOB '*y*'"); |
| 249 | if( n>0 ){ |
| 250 | z = db_text(0, |
| 251 | "SELECT group_concat(" |
| 252 | "printf('<a href=''setup_uedit?id=%%d''>%%s</a>',uid,login),', ')" |
| 253 | " FROM user WHERE cap GLOB '*y*'" |
| 254 | ); |
| 255 |