Changeset 53 in bookmarks
- Timestamp:
- 08/15/13 19:48:39 (11 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BookmarkApp.pm
r52 r53 24 24 }]); 25 25 26 my $base_uri = URI->new; 27 $base_uri->scheme('http'); 28 $base_uri->host($ENV{SERVER_NAME}); 29 $base_uri->port($ENV{SERVER_PORT}); 30 $base_uri->path($ENV{SCRIPT_NAME}); 26 my $url = $self->query->url; 27 $url .= '/' unless $url =~ m{/$}; 28 my $base_uri = URI->new($url); 31 29 32 30 my $bookmarks = Bookmarks->new({ … … 441 439 $bookmark->uri($q->param('uri')); 442 440 $bookmark->title($q->param('title')); 443 $bookmark->tags([ split (' ', $q->param('tags'))]);441 $bookmark->tags([ split ' ', $q->param('tags') || '' ]); 444 442 445 443 # write to the database -
trunk/BookmarkApp/Dispatch.pm
r45 r53 3 3 4 4 package BookmarkApp::Dispatch; 5 use base 'CGI::Application::Dispatch ';5 use base 'CGI::Application::Dispatch::PSGI'; 6 6 7 7 sub dispatch_args {
Note: See TracChangeset
for help on using the changeset viewer.