summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
authorxue <>2006-05-21 22:48:55 +0000
committerxue <>2006-05-21 22:48:55 +0000
commit2f02ab8fcbb5f45bb92cb9546c0328769c290049 (patch)
treebf8ce74d8fe37557b901ce486af5e41a938bdca9 /framework/Web/UI/TControl.php
parent28691ec3ccec6d94f7417987d8c7203bff3efecb (diff)
Ensures control ID must start with a letter or underline character.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php2
1 files changed, 1 insertions, 1 deletions
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
*/