diff options
author | Kevin Chabowski <kevin@kch42.de> | 2012-06-08 22:47:00 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2012-06-08 22:47:00 +0200 |
commit | 66ecc6db41cd4b7e06f0c953f3b5c88506765b06 (patch) | |
tree | af33f3cfd2b7e8be93e88e69a1288542ba1929be /ratatoeskr/backend.php | |
parent | 89ca548864ca262f7d58f4ddfaf92fc08cb3dca9 (diff) | |
download | ratatoeskr-cms-66ecc6db41cd4b7e06f0c953f3b5c88506765b06.tar.gz ratatoeskr-cms-66ecc6db41cd4b7e06f0c953f3b5c88506765b06.tar.bz2 ratatoeskr-cms-66ecc6db41cd4b7e06f0c953f3b5c88506765b06.zip |
Section::test_name implemented.
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r-- | ratatoeskr/backend.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php index a6cc6f3..ea79a6b 100644 --- a/ratatoeskr/backend.php +++ b/ratatoeskr/backend.php @@ -1112,7 +1112,7 @@ $backend_subactions = url_action_subactions(array( { if((preg_match("/^[a-zA-Z0-9\\-_\\.]+$/", $_POST["template"]) == 0) or (!is_file(SITE_BASE_PATH . "/ratatoeskr/templates/src/usertemplates/{$_POST['template']}"))) $ste->vars["error"] = $translation["unknown_template"]; - else if(preg_match("/^[a-zA-Z0-9\\-_]+$/", $_POST["section_name"]) == 0) + else if(!Section::test_name($_POST["section_name"])) $ste->vars["error"] = $translation["invalid_section_name"]; else { |