From 2f02ab8fcbb5f45bb92cb9546c0328769c290049 Mon Sep 17 00:00:00 2001 From: xue <> Date: Sun, 21 May 2006 22:48:55 +0000 Subject: Ensures control ID must start with a letter or underline character. --- framework/Web/UI/TControl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'framework/Web/UI/TControl.php') diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php index 5becd7e6..66ac8fd5 100644 --- a/framework/Web/UI/TControl.php +++ b/framework/Web/UI/TControl.php @@ -73,7 +73,7 @@ class TControl extends TApplicationComponent implements IRenderable, IBindable /** * format of control ID */ - const ID_FORMAT='/^\\w*$/'; + const ID_FORMAT='/^[a-zA-Z_]\\w*$/'; /** * separator char between IDs in a UniqueID */ -- cgit v1.2.3