IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 10, 2005, 12:07:53 PM (21 years ago)
Author:
jhoblitt
Message:

change Nebulous::Server->create_object() to validate comment length

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r5503 r5504  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.16 2005-11-10 21:57:15 jhoblitt Exp $
     3# $Id: Server.pm,v 1.17 2005-11-10 22:07:53 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    9090        {
    9191            type        => SCALAR,
     92            callbacks   => {
     93                # check that the comment isn't too long
     94                'comment length' => sub { length $_[0] < 256 },
     95            },
    9296            optional    => 1,
    9397        },
     
    99103    # add hooks to make this decision based on avaiable space
    100104    $volume = _get_storage_volume( $volume );
    101 
    102     # check that the comment isn't too long
    103105
    104106    my $uri;
Note: See TracChangeset for help on using the changeset viewer.