Fossil SCM
Centralize escaping of reserved HTML characters in the captcha output.
Commit
a460326337fc2900484c141f2d9d2bda61e35adf
Parent
dfa3579455cd349…
2 files changed
+3
-3
+2
-2
+3
-3
| --- src/captcha.c | ||
| +++ src/captcha.c | ||
| @@ -252,11 +252,11 @@ | ||
| 252 | 252 | |
| 253 | 253 | /* 3 */ |
| 254 | 254 | " ____ ", |
| 255 | 255 | "|___ \\ ", |
| 256 | 256 | " __) |", |
| 257 | - " |__ < ", | |
| 257 | + " |__ < ", | |
| 258 | 258 | " ___) |", |
| 259 | 259 | "|____/ ", |
| 260 | 260 | |
| 261 | 261 | /* 4 */ |
| 262 | 262 | " _ _ ", |
| @@ -292,11 +292,11 @@ | ||
| 292 | 292 | |
| 293 | 293 | /* 8 */ |
| 294 | 294 | " ___ ", |
| 295 | 295 | " / _ \\ ", |
| 296 | 296 | "| (_) |", |
| 297 | - " > _ < ", | |
| 297 | + " > _ < ", | |
| 298 | 298 | "| (_) |", |
| 299 | 299 | " \\___/ ", |
| 300 | 300 | |
| 301 | 301 | /* 9 */ |
| 302 | 302 | " ___ ", |
| @@ -316,11 +316,11 @@ | ||
| 316 | 316 | |
| 317 | 317 | /* B */ |
| 318 | 318 | " ____ ", |
| 319 | 319 | "| _ \\ ", |
| 320 | 320 | "| |_) |", |
| 321 | - "| _ < ", | |
| 321 | + "| _ < ", | |
| 322 | 322 | "| |_) |", |
| 323 | 323 | "|____/ ", |
| 324 | 324 | |
| 325 | 325 | /* C */ |
| 326 | 326 | " _____ ", |
| 327 | 327 |
| --- src/captcha.c | |
| +++ src/captcha.c | |
| @@ -252,11 +252,11 @@ | |
| 252 | |
| 253 | /* 3 */ |
| 254 | " ____ ", |
| 255 | "|___ \\ ", |
| 256 | " __) |", |
| 257 | " |__ < ", |
| 258 | " ___) |", |
| 259 | "|____/ ", |
| 260 | |
| 261 | /* 4 */ |
| 262 | " _ _ ", |
| @@ -292,11 +292,11 @@ | |
| 292 | |
| 293 | /* 8 */ |
| 294 | " ___ ", |
| 295 | " / _ \\ ", |
| 296 | "| (_) |", |
| 297 | " > _ < ", |
| 298 | "| (_) |", |
| 299 | " \\___/ ", |
| 300 | |
| 301 | /* 9 */ |
| 302 | " ___ ", |
| @@ -316,11 +316,11 @@ | |
| 316 | |
| 317 | /* B */ |
| 318 | " ____ ", |
| 319 | "| _ \\ ", |
| 320 | "| |_) |", |
| 321 | "| _ < ", |
| 322 | "| |_) |", |
| 323 | "|____/ ", |
| 324 | |
| 325 | /* C */ |
| 326 | " _____ ", |
| 327 |
| --- src/captcha.c | |
| +++ src/captcha.c | |
| @@ -252,11 +252,11 @@ | |
| 252 | |
| 253 | /* 3 */ |
| 254 | " ____ ", |
| 255 | "|___ \\ ", |
| 256 | " __) |", |
| 257 | " |__ < ", |
| 258 | " ___) |", |
| 259 | "|____/ ", |
| 260 | |
| 261 | /* 4 */ |
| 262 | " _ _ ", |
| @@ -292,11 +292,11 @@ | |
| 292 | |
| 293 | /* 8 */ |
| 294 | " ___ ", |
| 295 | " / _ \\ ", |
| 296 | "| (_) |", |
| 297 | " > _ < ", |
| 298 | "| (_) |", |
| 299 | " \\___/ ", |
| 300 | |
| 301 | /* 9 */ |
| 302 | " ___ ", |
| @@ -316,11 +316,11 @@ | |
| 316 | |
| 317 | /* B */ |
| 318 | " ____ ", |
| 319 | "| _ \\ ", |
| 320 | "| |_) |", |
| 321 | "| _ < ", |
| 322 | "| |_) |", |
| 323 | "|____/ ", |
| 324 | |
| 325 | /* C */ |
| 326 | " _____ ", |
| 327 |
+2
-2
| --- src/login.c | ||
| +++ src/login.c | ||
| @@ -631,11 +631,11 @@ | ||
| 631 | 631 | |
| 632 | 632 | @ <p><input type="hidden" name="cs" value="%u(uSeed)" /> |
| 633 | 633 | @ Visitors may enter <b>anonymous</b> as the user-ID with |
| 634 | 634 | @ the 8-character hexadecimal password shown below:</p> |
| 635 | 635 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 636 | - @ %s(zCaptcha) | |
| 636 | + @ %h(zCaptcha) | |
| 637 | 637 | @ </pre></td></tr></table> |
| 638 | 638 | if( bAutoCaptcha ) { |
| 639 | 639 | @ <input type="button" value="Fill out captcha" |
| 640 | 640 | @ onclick="gebi('u').value='anonymous'; gebi('p').value='%s(zDecoded)';" /> |
| 641 | 641 | } |
| @@ -1290,11 +1290,11 @@ | ||
| 1290 | 1290 | @ </tr> |
| 1291 | 1291 | @ <tr><td></td> |
| 1292 | 1292 | @ <td><input type="submit" name="new" value="Register" /></td></tr> |
| 1293 | 1293 | @ </table> |
| 1294 | 1294 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 1295 | - @ %s(zCaptcha) | |
| 1295 | + @ %h(zCaptcha) | |
| 1296 | 1296 | @ </pre></td></tr></table> |
| 1297 | 1297 | @ </form> |
| 1298 | 1298 | style_footer(); |
| 1299 | 1299 | |
| 1300 | 1300 | free(zCaptcha); |
| 1301 | 1301 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -631,11 +631,11 @@ | |
| 631 | |
| 632 | @ <p><input type="hidden" name="cs" value="%u(uSeed)" /> |
| 633 | @ Visitors may enter <b>anonymous</b> as the user-ID with |
| 634 | @ the 8-character hexadecimal password shown below:</p> |
| 635 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 636 | @ %s(zCaptcha) |
| 637 | @ </pre></td></tr></table> |
| 638 | if( bAutoCaptcha ) { |
| 639 | @ <input type="button" value="Fill out captcha" |
| 640 | @ onclick="gebi('u').value='anonymous'; gebi('p').value='%s(zDecoded)';" /> |
| 641 | } |
| @@ -1290,11 +1290,11 @@ | |
| 1290 | @ </tr> |
| 1291 | @ <tr><td></td> |
| 1292 | @ <td><input type="submit" name="new" value="Register" /></td></tr> |
| 1293 | @ </table> |
| 1294 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 1295 | @ %s(zCaptcha) |
| 1296 | @ </pre></td></tr></table> |
| 1297 | @ </form> |
| 1298 | style_footer(); |
| 1299 | |
| 1300 | free(zCaptcha); |
| 1301 |
| --- src/login.c | |
| +++ src/login.c | |
| @@ -631,11 +631,11 @@ | |
| 631 | |
| 632 | @ <p><input type="hidden" name="cs" value="%u(uSeed)" /> |
| 633 | @ Visitors may enter <b>anonymous</b> as the user-ID with |
| 634 | @ the 8-character hexadecimal password shown below:</p> |
| 635 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 636 | @ %h(zCaptcha) |
| 637 | @ </pre></td></tr></table> |
| 638 | if( bAutoCaptcha ) { |
| 639 | @ <input type="button" value="Fill out captcha" |
| 640 | @ onclick="gebi('u').value='anonymous'; gebi('p').value='%s(zDecoded)';" /> |
| 641 | } |
| @@ -1290,11 +1290,11 @@ | |
| 1290 | @ </tr> |
| 1291 | @ <tr><td></td> |
| 1292 | @ <td><input type="submit" name="new" value="Register" /></td></tr> |
| 1293 | @ </table> |
| 1294 | @ <div class="captcha"><table class="captcha"><tr><td><pre> |
| 1295 | @ %h(zCaptcha) |
| 1296 | @ </pre></td></tr></table> |
| 1297 | @ </form> |
| 1298 | style_footer(); |
| 1299 | |
| 1300 | free(zCaptcha); |
| 1301 |