From:             suhachov at gmail dot com
Operating system: any
PHP version:      5.2.5
PHP Bug Type:     Output Control
Bug description:  output_add_rewrite_var fails on <form> with attributes 
containing underscores

Description:
------------
output_add_rewrite_var() fails to operate on forms with attributes
containing underscores:
<form _url="..">...</form>

The reason is that only a-zA-Z are allowed in attribute names:
ext/standard/url_scanner_ex.re, lines 310-...:
state_arg:
        start = YYCURSOR;
/*!re2c
  alpha alphadash*      { passthru(STD_ARGS); handle_arg(STD_ARGS); STATE =
STATE_BEFORE_VAL; goto state_before_val; }
  any           { passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto 
state_next_arg;
}
*/

and alpha is:
alpha = [a-zA-Z];


I know that _ is not a character that is used in any standard html
attributes, but it's used sometimes in the dojo world.



-- 
Edit bug report at http://bugs.php.net/?id=44886&edit=1
-- 
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=44886&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): 
http://bugs.php.net/fix.php?id=44886&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=44886&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=44886&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=44886&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=44886&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=44886&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=44886&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=44886&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=44886&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=44886&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=44886&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=44886&r=globals
PHP 4 support discontinued:   http://bugs.php.net/fix.php?id=44886&r=php4
Daylight Savings:             http://bugs.php.net/fix.php?id=44886&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=44886&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=44886&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=44886&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=44886&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=44886&r=mysqlcfg

Reply via email to