From:             kkoehler at comcast dot net
Operating system: Linux mis 2.4.21-4.EL #1-Red Hat
PHP version:      5.0.2
PHP Bug Type:     *URL Functions
Bug description:  $_POST problem with <textarea></textarea> variables

Description:
------------
I'm using Smarty 2.6.5 also.  When I have a $_POST coming in that is over
1300 bytes, it reads in the full data but takes a chunk at the bottom and
duplicates it.  So if you have over 1300 bytes, it reads in the 1300 bytes
and then takes part of the last so many bytes and keeps duplicating it with
every submit.
I verified that the $_POST data has the duplicated data but the screen
before submit does not.  This same code works in 4.3.8 without any
problem. 






Reproduce code:
---------------
Here's the smarty code:

<textarea name="cldescription" cols="94" rows="17"
>{$dformVars.cldescription}</textarea>

Piece of the PHP code:

$description = trim($_POST['cldescription']);
        echo "SIZE " . strlen($description);



Expected result:
----------------
What I see on the screen is what comes in via the $_POST.

Actual result:
--------------
As I keep reexecuting the code via submit, the size keeps growing.  

-- 
Edit bug report at http://bugs.php.net/?id=30999&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30999&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=30999&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=30999&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30999&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30999&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30999&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30999&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30999&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30999&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30999&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=30999&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=30999&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30999&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30999&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30999&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30999&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30999&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30999&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30999&r=mysqlcfg

Reply via email to