#21397 [NEW]: magic_quotes? or some thing is wrongfully modifying specific strings

From: Date: Fri, 03 Jan 2003 20:28:17 +0000
Subject: #21397 [NEW]: magic_quotes? or some thing is wrongfully modifying specific strings
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-29007@lists.php.net to get a copy of this message
From: danlo@danlo.com Operating system: FreeBSD 4.6 Stable PHP version: 4.3.0 PHP Bug Type: Unknown/Other Function Bug description: magic_quotes? or some thing is wrongfully modifying specific strings Something about magic_qoutes (or the URL=>_GET) is adding extra '>' in specific situations. (As if it was trying to close the tags.) For example (magic quotes on). Input $_GET has <[< <[>< <-< <->< And in addition the ,"\n\n<br>" seams to be adding its own '>'. A script showing this problem is below: <html> <body> <?php if ($_GET['text']) echo "You posted this string: ",$_GET['text'],"\n\n<br>"; echo "\n"; if ($_GET['text']) echo "htmlentities returns: ",htmlentities($_GET['text']),"\n<br>"; ?> <form method=get action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>"> <input type=text name=text value="&lt;[&lt;"> <input type=submit value="Try this"> </form> <form method=get action="<?php echo $HTTP_SERVER_VARS['PHP_SELF']; ?>"> <input type=text name=text value="a<=b"> <input type=submit value="Try this"> </form> </body> </html> -- Edit bug report at http://bugs.php.net/?id=21397&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21397&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21397&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21397&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21397&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21397&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21397&r=support Expected behavior: http://bugs.php.net/fix.php?id=21397&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21397&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21397&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21397&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21397&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21397&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21397&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=21397&r=gnused

« previous php.bugs (#29007) next »