IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6543


Ignore:
Timestamp:
Mar 7, 2006, 4:12:17 PM (20 years ago)
Author:
jhoblitt
Message:

properly validate uri param

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/DataStore/lib/DataStore/File.pm

    r6501 r6543  
    11# Copyright (C) 2006  Joshua Hoblitt
    22#
    3 # $Id: File.pm,v 1.1 2006-02-28 03:03:14 jhoblitt Exp $
     3# $Id: File.pm,v 1.2 2006-03-08 02:12:17 jhoblitt Exp $
    44
    55package DataStore::File;
     
    6161    my %p = validate(@_,
    6262        {
    63             uri         => 1,
     63            uri             => {
     64                type        => SCALAR,
     65                callbacks   => {
     66                    'is valid uri filename' => sub { $_[0] !~ m|/$| },
     67
     68                },
     69            },
    6470            fileid      => 1,
    6571            bytes       => 1,
Note: See TracChangeset for help on using the changeset viewer.