summaryrefslogtreecommitdiff
path: root/core/helpers/item.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/helpers/item.php')
-rw-r--r--core/helpers/item.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/helpers/item.php b/core/helpers/item.php
index b051bb0e..bd54f2b1 100644
--- a/core/helpers/item.php
+++ b/core/helpers/item.php
@@ -72,4 +72,10 @@ class item_Core {
$album->save();
graphics::generate($album);
}
+
+ static function validate_no_slashes($input) {
+ if (strpos($input->value, "/") !== false) {
+ $input->add_error("no_slashes", 1);
+ }
+ }
} \ No newline at end of file