summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-06-23 18:04:02 +0000
committeryorhel <yorhel@1fe2e327-d9db-4752-bcf7-ef0cb4a1748b>2008-06-23 18:04:02 +0000
commit7fec4649f9019bc4d2f474d2e498daed20d47764 (patch)
tree5ead248b786dbd368f51efc6771b408c9cdc7930
parent18f2b6fd64f1eb32f32b0b193042ee0feb513058 (diff)
Fixed an internal server error triggered by a maxlength or minlength violation
git-svn-id: svn://vndb.org/vndb@34 1fe2e327-d9db-4752-bcf7-ef0cb4a1748b
-rw-r--r--data/tpl/defs.pl2
-rw-r--r--lib/ChangeLog9
-rw-r--r--lib/VNDB/Util/Tools.pm8
3 files changed, 9 insertions, 10 deletions
diff --git a/data/tpl/defs.pl b/data/tpl/defs.pl
index 1f2056a7..40bad445 100644
--- a/data/tpl/defs.pl
+++ b/data/tpl/defs.pl
@@ -319,7 +319,7 @@ sub formerr {
my $ret = '<span class="warning">
Error:<ul>';
$ret .= sprintf " <li>%s</li>\n",
- /^([a-z0-9_]+)_([0-9]+)_?(.*)$/ ? &{$formerr_msgs[$2-1]}($formerr_names{$1}||$1, $3||'') : $formerr_exeptions{$_}
+ /^([a-z0-9_]+)-([0-9]+)(?:-(.+))?$/ ? &{$formerr_msgs[$2-1]}($formerr_names{$1}||$1, $3||'') : $formerr_exeptions{$_}
foreach (@err);
$ret .= "</ul>\n</span>\n";
}
diff --git a/lib/ChangeLog b/lib/ChangeLog
index bc3a4096..25307f9a 100644
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -6,12 +6,11 @@ TODO:
(preferably with the option to re-add them when unhiding)
+ Add a link for the hidden 'h' option at /hist
+ The delete option should be removed
- + AJAXified image upload system to avoid confusion about whether an image is
- uploaded or not
- + Use AniDB's daily title dump and implement a search feature to add
- anime relations without having to visit AniDB.
-1.17 - 2008-06-21
+1.18 - ?
+ - ...
+
+1.17 - 2008-06-21 (r33)
- Added PS3 and Xbox 360 to platforms
- Relation graph generation improvements: Unicode, anti-aliassing, async
- Removed all passwords from the main code, and created a seperate config
diff --git a/lib/VNDB/Util/Tools.pm b/lib/VNDB/Util/Tools.pm
index 44e3f588..9b6180e1 100644
--- a/lib/VNDB/Util/Tools.pm
+++ b/lib/VNDB/Util/Tools.pm
@@ -45,10 +45,10 @@ sub FormCheck {
if(!$ps[$i]{required} && !$$val && length($$val) < 1 && $$val ne '0') {
$hash{$k}[$j] = exists $ps[$i]{default} ? $ps[$i]{default} : undef;
} else {
- my $errc = $ps[$i]{name}.'_'.$e;
- $errc .= '_'.$ps[$i]{minlength} if $e == 2;
- $errc .= '_'.$ps[$i]{maxlength} if $e == 3;
- $errc .= '_'.$ps[$i]{template} if $e == 4;
+ my $errc = $ps[$i]{name}.'-'.$e;
+ $errc .= '-'.$ps[$i]{minlength} if $e == 2;
+ $errc .= '-'.$ps[$i]{maxlength} if $e == 3;
+ $errc .= '-'.$ps[$i]{template} if $e == 4;
push(@err, $errc);
last;
}