Fossil SCM
Use in cgi strncmp to circumvent Firefox adding ; charset: UTF-8; changed cols to 60 especially under windows it is to big and the result is not side-by-side
Commit
a7a331fa1672aaa37f6ceab673568c288d1e9cf7
Parent
55e7e24595982a8…
2 files changed
+1
-1
+1
-1
+1
-1
| --- src/cgi.c | ||
| +++ src/cgi.c | ||
| @@ -814,11 +814,11 @@ | ||
| 814 | 814 | |
| 815 | 815 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 816 | 816 | g.zContentType = zType = P("CONTENT_TYPE"); |
| 817 | 817 | if( len>0 && zType ){ |
| 818 | 818 | blob_zero(&g.cgiIn); |
| 819 | - if( fossil_strcmp(zType,"application/x-www-form-urlencoded")==0 | |
| 819 | + if( strncmp(zType,"application/x-www-form-urlencoded",33)==0 | |
| 820 | 820 | || strncmp(zType,"multipart/form-data",19)==0 ){ |
| 821 | 821 | z = fossil_malloc( len+1 ); |
| 822 | 822 | len = fread(z, 1, len, g.httpIn); |
| 823 | 823 | z[len] = 0; |
| 824 | 824 | if( zType[0]=='a' ){ |
| 825 | 825 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -814,11 +814,11 @@ | |
| 814 | |
| 815 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 816 | g.zContentType = zType = P("CONTENT_TYPE"); |
| 817 | if( len>0 && zType ){ |
| 818 | blob_zero(&g.cgiIn); |
| 819 | if( fossil_strcmp(zType,"application/x-www-form-urlencoded")==0 |
| 820 | || strncmp(zType,"multipart/form-data",19)==0 ){ |
| 821 | z = fossil_malloc( len+1 ); |
| 822 | len = fread(z, 1, len, g.httpIn); |
| 823 | z[len] = 0; |
| 824 | if( zType[0]=='a' ){ |
| 825 |
| --- src/cgi.c | |
| +++ src/cgi.c | |
| @@ -814,11 +814,11 @@ | |
| 814 | |
| 815 | len = atoi(PD("CONTENT_LENGTH", "0")); |
| 816 | g.zContentType = zType = P("CONTENT_TYPE"); |
| 817 | if( len>0 && zType ){ |
| 818 | blob_zero(&g.cgiIn); |
| 819 | if( strncmp(zType,"application/x-www-form-urlencoded",33)==0 |
| 820 | || strncmp(zType,"multipart/form-data",19)==0 ){ |
| 821 | z = fossil_malloc( len+1 ); |
| 822 | len = fread(z, 1, len, g.httpIn); |
| 823 | z[len] = 0; |
| 824 | if( zType[0]=='a' ){ |
| 825 |
+1
-1
| --- src/wiki.c | ||
| +++ src/wiki.c | ||
| @@ -375,11 +375,11 @@ | ||
| 375 | 375 | @ <form method="POST" action="%s(g.zTop)/wikiedit"> |
| 376 | 376 | login_insert_csrf_secret(); |
| 377 | 377 | @ <input type="hidden" name="name" value="%h(zPageName)" /> |
| 378 | 378 | @ <div> <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" /> |
| 379 | 379 | @ </div><input type="hidden" name="ss" value="%d(ss)" /> |
| 380 | - @ <textarea id="w" name="w" class="wikiedit" cols="70" rows="%d(n)" | |
| 380 | + @ <textarea id="w" name="w" class="wikiedit" cols="60" rows="%d(n)" | |
| 381 | 381 | @ >%h(zBody)</textarea> |
| 382 | 382 | @ <br /> |
| 383 | 383 | if(!ss){ |
| 384 | 384 | @ <input type="submit" name="preview" value="Preview Your Changes" /> |
| 385 | 385 | } |
| 386 | 386 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -375,11 +375,11 @@ | |
| 375 | @ <form method="POST" action="%s(g.zTop)/wikiedit"> |
| 376 | login_insert_csrf_secret(); |
| 377 | @ <input type="hidden" name="name" value="%h(zPageName)" /> |
| 378 | @ <div> <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" /> |
| 379 | @ </div><input type="hidden" name="ss" value="%d(ss)" /> |
| 380 | @ <textarea id="w" name="w" class="wikiedit" cols="70" rows="%d(n)" |
| 381 | @ >%h(zBody)</textarea> |
| 382 | @ <br /> |
| 383 | if(!ss){ |
| 384 | @ <input type="submit" name="preview" value="Preview Your Changes" /> |
| 385 | } |
| 386 |
| --- src/wiki.c | |
| +++ src/wiki.c | |
| @@ -375,11 +375,11 @@ | |
| 375 | @ <form method="POST" action="%s(g.zTop)/wikiedit"> |
| 376 | login_insert_csrf_secret(); |
| 377 | @ <input type="hidden" name="name" value="%h(zPageName)" /> |
| 378 | @ <div> <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" /> |
| 379 | @ </div><input type="hidden" name="ss" value="%d(ss)" /> |
| 380 | @ <textarea id="w" name="w" class="wikiedit" cols="60" rows="%d(n)" |
| 381 | @ >%h(zBody)</textarea> |
| 382 | @ <br /> |
| 383 | if(!ss){ |
| 384 | @ <input type="submit" name="preview" value="Preview Your Changes" /> |
| 385 | } |
| 386 |