ID:               21397
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: FreeBSD  4.6 Stable
 PHP Version:      4.3.0
 New Comment:

This seams to be something about my computer.  I don't know what is
causing it.  It happens on IE/NS/Opera


Previous Comments:
------------------------------------------------------------------------

[2003-01-03 14:29:07] [EMAIL PROTECTED]

Thank you for your time, if you have any questions about the script, or
need to see it run on our system, please feel free to contact me.

-daniel

------------------------------------------------------------------------

[2003-01-03 14:28:16] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=21397&edit=1

Reply via email to