Fossil

Check-in [a7a331fa16]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: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
Downloads: Tarball | ZIP archive
Timelines: family | ancestors | descendants | both | side-by-side-edit
Files: files | file ages | folders
SHA1: a7a331fa1672aaa37f6ceab673568c288d1e9cf7
User & Date: renez 2012-04-29 11:05:45.669
Context
2012-04-29
13:07
Put wrap="virtual" back in textarea Increase the height of the textarea to the height of the preview div. check-in: ead316f3f7 user: renez tags: side-by-side-edit
11:05
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 check-in: a7a331fa16 user: renez tags: side-by-side-edit
05:12
Put back the rows='%d(n)". Although an other option is, after the page has loaded, to change the offsetHeight of the text area to the height of the previewdiv. check-in: 55e7e24595 user: renez tags: side-by-side-edit
Changes
Unified Diff Ignore Whitespace Patch
Changes to src/cgi.c.
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
    g.zIpAddr = mprintf("%s", z);
  }

  len = atoi(PD("CONTENT_LENGTH", "0"));
  g.zContentType = zType = P("CONTENT_TYPE");
  if( len>0 && zType ){
    blob_zero(&g.cgiIn);
    if( fossil_strcmp(zType,"application/x-www-form-urlencoded")==0 
         || strncmp(zType,"multipart/form-data",19)==0 ){
      z = fossil_malloc( len+1 );
      len = fread(z, 1, len, g.httpIn);
      z[len] = 0;
      if( zType[0]=='a' ){
        add_param_list(z, '&');
      }else{







|







812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
    g.zIpAddr = mprintf("%s", z);
  }

  len = atoi(PD("CONTENT_LENGTH", "0"));
  g.zContentType = zType = P("CONTENT_TYPE");
  if( len>0 && zType ){
    blob_zero(&g.cgiIn);
    if( strncmp(zType,"application/x-www-form-urlencoded",33)==0 
         || strncmp(zType,"multipart/form-data",19)==0 ){
      z = fossil_malloc( len+1 );
      len = fread(z, 1, len, g.httpIn);
      z[len] = 0;
      if( zType[0]=='a' ){
        add_param_list(z, '&');
      }else{
Changes to src/wiki.c.
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
    @ <div id="colleft" style="width:50%%;">
  }
  @ <form method="POST" action="%s(g.zTop)/wikiedit">
  login_insert_csrf_secret();
  @ <input type="hidden" name="name" value="%h(zPageName)" />
  @ <div>  <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" />
  @ </div><input type="hidden" name="ss" value="%d(ss)" />
  @ <textarea id="w" name="w" class="wikiedit" cols="70" rows="%d(n)"
  @  >%h(zBody)</textarea>
  @ <br />
  if(!ss){
    @ <input type="submit" name="preview" value="Preview Your Changes" />
  }
  @ <input type="submit" name="submit" value="Apply These Changes" />
  @ <input type="submit" name="cancel" value="Cancel" />







|







373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
    @ <div id="colleft" style="width:50%%;">
  }
  @ <form method="POST" action="%s(g.zTop)/wikiedit">
  login_insert_csrf_secret();
  @ <input type="hidden" name="name" value="%h(zPageName)" />
  @ <div>  <input type="submit" id="ssb" name="ssb" value="Toggle Side-by-side" />
  @ </div><input type="hidden" name="ss" value="%d(ss)" />
  @ <textarea id="w" name="w" class="wikiedit" cols="60" rows="%d(n)"
  @  >%h(zBody)</textarea>
  @ <br />
  if(!ss){
    @ <input type="submit" name="preview" value="Preview Your Changes" />
  }
  @ <input type="submit" name="submit" value="Apply These Changes" />
  @ <input type="submit" name="cancel" value="Cancel" />