Skip to content

Instantly share code, notes, and snippets.

@usualoma
Created November 17, 2010 02:41
Show Gist options
  • Save usualoma/702898 to your computer and use it in GitHub Desktop.
Save usualoma/702898 to your computer and use it in GitHub Desktop.
mt-search-tag.cgi
#!/usr/bin/perl -w
use CGI;
$CGI::USE_PARAM_SEMICOLONS = 0;
my $q = CGI->new;
if ( my $tag = $q->param('tag') ) {
$tag =~ s/(\s| )+/ AND /;
$q->param( 'tag', $tag );
}
print $q->redirect( 'http://path/to/mt/mt-search.cgi?' . $q->query_string );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment