This file documents the revision history for Perl extension Catalyst.
5.24 2005-06-03 02:30:00
+ - Prettify home path by resolving '..' (Andy Grundman)
5.23 2005-06-03 02:30:00
- added support for non Catalyst::Base components to live in namespace
{
$home = $subdir;
}
+ # clean up relative path:
+ # MyApp/script/.. -> MyApp
+ my ($lastdir) = $home->dir_list( -1, 1 );
+ if ( $lastdir eq '..' ) {
+ $home = dir($home)->parent->parent;
+ }
}
return $home;
}