aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/backend.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-06-08 22:52:39 +0200
committerKevin Chabowski <kevin@kch42.de>2012-06-08 22:52:39 +0200
commit1dda842bb80414c6d373e7fb41c63d4d31e035b6 (patch)
treeaee98a28c654088de354653781f41521515aa146 /ratatoeskr/backend.php
parent66ecc6db41cd4b7e06f0c953f3b5c88506765b06 (diff)
downloadratatoeskr-cms-feature-move-data-checking-to-models.tar.gz
ratatoeskr-cms-feature-move-data-checking-to-models.tar.bz2
ratatoeskr-cms-feature-move-data-checking-to-models.zip
Style::test_name implemented.feature-move-data-checking-to-models
Diffstat (limited to 'ratatoeskr/backend.php')
-rw-r--r--ratatoeskr/backend.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ratatoeskr/backend.php b/ratatoeskr/backend.php
index ea79a6b..be03fc7 100644
--- a/ratatoeskr/backend.php
+++ b/ratatoeskr/backend.php
@@ -1059,7 +1059,7 @@ $backend_subactions = url_action_subactions(array(
/* A write request? */
if(isset($_POST["save_style"]))
{
- if(preg_match("/^[a-zA-Z0-9\\-_\\.]+$/", $_POST["style_name"]) == 1)
+ if(Style::test_name($_POST["style_name"]))
{
$ste->vars["style_name"] = $_POST["style_name"];
$ste->vars["style_code"] = $_POST["style_code"];