#44886 [Opn->Bgs]: output_add_rewrite_var fails on <form> with attributes containing underscores

From: Date: Tue, 15 Jul 2008 00:12:54 +0000
Subject: #44886 [Opn->Bgs]: output_add_rewrite_var fails on <form> with attributes containing underscores
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126724@lists.php.net to get a copy of this message
 ID:               44886
 Updated by:       jani@php.net
 Reported By:      suhachov at gmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         Output Control
 Operating System: *
 PHP Version:      5.2.5
 New Comment:

Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php




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

[2008-05-01 22:28:53] suhachov at gmail dot com

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



Thread (2 messages)

« previous php.bugs (#126724) next »