View | Details | Raw Unified | Return to bug 29403
Collapse All | Expand All

(-)a/Koha/DateUtils.pm (-1 / +4 lines)
Lines 162-167 sub dt_from_string { Link Here
162
    $regex .= $time_re unless ( $date_format eq 'rfc3339' );
162
    $regex .= $time_re unless ( $date_format eq 'rfc3339' );
163
    $fallback_re .= $time_re;
163
    $fallback_re .= $time_re;
164
164
165
    # Ensure we only accept date strings and not other characters.
166
    $regex = '^' . $regex . '$';
167
    $fallback_re = '^' . $fallback_re . '$';
168
165
    my %dt_params;
169
    my %dt_params;
166
    my $ampm;
170
    my $ampm;
167
    if ( $date_string =~ $regex ) {
171
    if ( $date_string =~ $regex ) {
168
- 

Return to bug 29403