#19956 [NEW]: readfile()/fread() screws up HTML attribute quoting
| From: | bcd at vineyard dot net | Date: | Thu, 17 Oct 2002 16:05:51 +0000 |
| Subject: | #19956 [NEW]: readfile()/fread() screws up HTML attribute quoting | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-22672@lists.php.net to get a copy of this message | ||
From: bcd@vineyard.net
Operating system: FreeBSD4.5
PHP version: 4.2.2
PHP Bug Type: Output Control
Bug description: readfile()/fread() screws up HTML attribute quoting
This is -very- wierd - this seems to happen when using
PHP to load HTML templates. Somewhere, in fread(), HTML attributes are
being modified ever-so-slightly:
<a href = "foo-bar.html">
gets translated to:
<a href =" foo-bar.html">
This happens for double and single-quotes, and only when whitespace exists
to the right of the equal sign of an html attribute.
If there is multiple white-space, the whitespace is all moved to the
beginning of the HTML attribute value: ie,
<a href = "foo-bar.html">
becomes:
<a href =" foo-bar.html">
There are more examples at the following URL:
http://www.vineyard.net/vni/php-test.php
PHP is setup normally on our systems (Default everything), and I've found
no related bugs in the bug archive, so I think I am the first one to see
this bug (If it is a bug?)
--
Edit bug report at http://bugs.php.net/?id=19956&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19956&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19956&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19956&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19956&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19956&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19956&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19956&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19956&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19956&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19956&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=19956&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=19956&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=19956&r=isapi