#24031 [NEW]: HTML_Javascript PopupWrite flawed
| From: | arnaud@php.net | Date: | Thu, 05 Jun 2003 07:07:17 +0000 |
| Subject: | #24031 [NEW]: HTML_Javascript PopupWrite flawed | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-17037@lists.php.net to get a copy of this message | ||
From: arnaud@php.net
Operating system: not relevant
PHP version: 4.3.2
PHP Bug Type: PEAR related
Bug description: HTML_Javascript PopupWrite flawed
The popupWrite method has a bug in attributes handling.
if($attr) {
$attr = array('yes', 'yes', 'yes', 'yes',
'yes', 'yes', $top,
$left);
} else {
$attr = array('no', 'no', 'no', 'no',
'no', 'no', $top,
$height);
}
Upon "true", it uses $left but upon false it uses $height.
It should read if i am not mistaken.
if($attr) {
$attr = array('yes', 'yes', 'yes', 'yes',
'yes', 'yes', $top,
$left);
} else {
$attr = array('no', 'no', 'no', 'no',
'no', 'no', $top,
$left);
}
Revision: 1.32 of Javascript.php
--
Edit bug report at http://bugs.php.net/?id=24031&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=24031&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=24031&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24031&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24031&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24031&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24031&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24031&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24031&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24031&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24031&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24031&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24031&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24031&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24031&r=gnused