|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #44886 output_add_rewrite_var fails on <form> with attributes containing underscores
Submitted: 2008-05-01 22:28 UTC Modified: 2008-07-15 00:12 UTC
From: suhachov at gmail dot com Assigned:
Status: Not a bug Package: Output Control
PHP Version: 5.2.5 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: suhachov at gmail dot com
New email:
PHP Version: OS:


 [2008-05-01 22:28 UTC] suhachov at gmail dot com
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/, lines 310-...:
	start = YYCURSOR;
  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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-15 00:12 UTC]
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at and the instructions on how to report
a bug at

PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Jul 21 02:01:29 2024 UTC