Changeset 862


Ignore:
Timestamp:
04/21/16 17:23:47 (8 years ago)
Author:
Kris Deugau
Message:

/trunk

Tweak handling for inserting the library version in the IPDB notices so
that non-numeric version strings at least show up sanely. May be simpler
to just use the raw version as-is?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/IPDB.pm

    r860 r862  
    35013501  return if !%reciplist;
    35023502
     3503  # dodge a bullet with module version "numbers"
     3504  my ($ver) = ($IPDB::VERSION =~ /^([\d.]+)(?:^\d|$)/);
     3505
    35033506  foreach my $recip (keys %reciplist) {
    35043507    $mailer->mail($smtpsender);
     
    35083511        "Date: ".strftime("%a, %d %b %Y %H:%M:%S %z",localtime)."\n",
    35093512        "Subject: {IPDB} $subj\n",
    3510         "X-Mailer: IPDB Notify v".sprintf("%.1d",$IPDB::VERSION)."\n",
     3513        "X-Mailer: IPDB Notify v".sprintf("%.1d",$ver)."\n",
    35113514        "Organization: $org_name\n",
    35123515        "\n$message\n");
Note: See TracChangeset for help on using the changeset viewer.