aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/backend.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2012-06-08 21:27:55 +0200
committerKevin Chabowski <kevin@kch42.de>2012-06-08 21:27:55 +0200
commit11c872b1d8cd4cd905e2184f698af71862602d0b (patch)
tree5f01dd8b5d2abc3fcf1ddb78fc0a1aa992ac7ee2 /ratatoeskr/backend.php
parent4bbacf8eff3d9433142250fe4b31c018010c1cc1 (diff)
downloadratatoeskr-cms-11c872b1d8cd4cd905e2184f698af71862602d0b.tar.gz
ratatoeskr-cms-11c872b1d8cd4cd905e2184f698af71862602d0b.tar.bz2
ratatoeskr-cms-11c872b1d8cd4cd905e2184f698af71862602d0b.zip
Article::test_urlname implemented.
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 3670137..8cc174d 100644
--- a/ratatoeskr/backend.php
+++ b/ratatoeskr/backend.php
@@ -174,7 +174,7 @@ $backend_subactions = url_action_subactions(array(
if(isset($_POST["save_article"]))
{
- if(!preg_match('/^[a-zA-Z0-9-_]+$/', @$_POST["urlname"]))
+ if(!Article::test_urlname($_POST["urlname"]))
$fail_reasons[] = $translation["invalid_urlname"];
else
$inputs["urlname"] = $_POST["urlname"];