Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #8075

Re: POST data being truncated at "

From The Natural Philosopher <tnp@invalid.invalid>
Newsgroups comp.lang.php
Subject Re: POST data being truncated at "
Date 2013-01-12 17:02 +0000
Organization albasani.net
Message-ID <kcs4vo$ttt$1@news.albasani.net> (permalink)
References <kcs3th$qk6$1@speranza.aioe.org>

Show all headers | View raw


On 12/01/13 16:44, bill wrote:
> Script 1: I collect data, including a textarea - submitted via AJAX
> Script 2: I retrieve the data from the POST var and collate the data and
> create a human readable report which is put into a hidden field -
> submitted via AJAX
> Script 3: I retrieve the data from the POST var write the data to disk
>
> The data collected in form 1 has an embeded quote: "ok" which is passed
> via the POST array to form 2 without error.
>
> When the report (which contains the textarea containing the quote)
> passes from Script 2 to Script 3 the report is truncated just before the
> quote.
>
> Do I need to encode the report befoe putting it into a hidden form field ?

yes.
there are a couple of commands to so this - I think htmlspecialchars 
will cover the case.


> or, anyone have any suggestions on how to debug this ?
>
> -bill


-- 
Ineptocracy

(in-ep-toc’-ra-cy) – a system of government where the least capable to 
lead are elected by the least capable of producing, and where the 
members of society least likely to sustain themselves or succeed, are 
rewarded with goods and services paid for by the confiscated wealth of a 
diminishing number of producers.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

POST data being truncated at " bill <william@TechServSys.com> - 2013-01-12 11:44 -0500
  Re: POST data being truncated at " The Natural Philosopher <tnp@invalid.invalid> - 2013-01-12 17:02 +0000
    Re: POST data being truncated at " bill <william@TechServSys.com> - 2013-01-13 05:32 -0500
  Re: POST data being truncated at " Jerry Stuckle <jstucklex@attglobal.net> - 2013-01-12 16:27 -0500
    Re: POST data being truncated at " bill <william@TechServSys.com> - 2013-01-13 05:31 -0500
      Re: POST data being truncated at " "M. Strobel" <sorry_no_mail_here@nowhere.dee> - 2013-01-13 11:40 +0100
        Re: POST data being truncated at " bill <william@TechServSys.com> - 2013-01-14 07:45 -0500
  Re: POST data being truncated at " richard <noreply@example.com> - 2013-01-15 18:16 -0500

csiph-web