Fossil SCM

Centralize escaping of reserved HTML characters in the captcha output.

mistachkin 2012-11-20 22:28 trunk
Commit a460326337fc2900484c141f2d9d2bda61e35adf
2 files changed +3 -3 +2 -2
+3 -3
--- src/captcha.c
+++ src/captcha.c
@@ -252,11 +252,11 @@
252252
253253
/* 3 */
254254
" ____ ",
255255
"|___ \\ ",
256256
" __) |",
257
- " |__ < ",
257
+ " |__ < ",
258258
" ___) |",
259259
"|____/ ",
260260
261261
/* 4 */
262262
" _ _ ",
@@ -292,11 +292,11 @@
292292
293293
/* 8 */
294294
" ___ ",
295295
" / _ \\ ",
296296
"| (_) |",
297
- " > _ &lt; ",
297
+ " > _ < ",
298298
"| (_) |",
299299
" \\___/ ",
300300
301301
/* 9 */
302302
" ___ ",
@@ -316,11 +316,11 @@
316316
317317
/* B */
318318
" ____ ",
319319
"| _ \\ ",
320320
"| |_) |",
321
- "| _ &lt; ",
321
+ "| _ < ",
322322
"| |_) |",
323323
"|____/ ",
324324
325325
/* C */
326326
" _____ ",
327327
--- src/captcha.c
+++ src/captcha.c
@@ -252,11 +252,11 @@
252
253 /* 3 */
254 " ____ ",
255 "|___ \\ ",
256 " __) |",
257 " |__ &lt; ",
258 " ___) |",
259 "|____/ ",
260
261 /* 4 */
262 " _ _ ",
@@ -292,11 +292,11 @@
292
293 /* 8 */
294 " ___ ",
295 " / _ \\ ",
296 "| (_) |",
297 " > _ &lt; ",
298 "| (_) |",
299 " \\___/ ",
300
301 /* 9 */
302 " ___ ",
@@ -316,11 +316,11 @@
316
317 /* B */
318 " ____ ",
319 "| _ \\ ",
320 "| |_) |",
321 "| _ &lt; ",
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 @@
631631
632632
@ <p><input type="hidden" name="cs" value="%u(uSeed)" />
633633
@ Visitors may enter <b>anonymous</b> as the user-ID with
634634
@ the 8-character hexadecimal password shown below:</p>
635635
@ <div class="captcha"><table class="captcha"><tr><td><pre>
636
- @ %s(zCaptcha)
636
+ @ %h(zCaptcha)
637637
@ </pre></td></tr></table>
638638
if( bAutoCaptcha ) {
639639
@ <input type="button" value="Fill out captcha"
640640
@ onclick="gebi('u').value='anonymous'; gebi('p').value='%s(zDecoded)';" />
641641
}
@@ -1290,11 +1290,11 @@
12901290
@ </tr>
12911291
@ <tr><td></td>
12921292
@ <td><input type="submit" name="new" value="Register" /></td></tr>
12931293
@ </table>
12941294
@ <div class="captcha"><table class="captcha"><tr><td><pre>
1295
- @ %s(zCaptcha)
1295
+ @ %h(zCaptcha)
12961296
@ </pre></td></tr></table>
12971297
@ </form>
12981298
style_footer();
12991299
13001300
free(zCaptcha);
13011301
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button