Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rq template-for-spice error fixed -- removed [PodWeaver] from dist.ini

  • Loading branch information...
commit 228434764470f590fdb2865194c84281c92486d2 1 parent efdd86b
@moollaza moollaza authored
Showing with 4 additions and 4 deletions.
  1. +1 −2  dist.ini
  2. +3 −2 lib/App/DuckPAN/Web.pm
View
3  dist.ini
@@ -21,8 +21,7 @@ install_command = cpanm .
authority = cpan:GETTY
do_metadata = 1
-[PodWeaver]
-config_plugin = @GETTY
+
[Repository]
View
5 lib/App/DuckPAN/Web.pm
@@ -119,10 +119,11 @@ sub request {
last if $result;
}
my $page = $self->page_spice;
- my $uri_encoded_query = uri_escape($query);
- my $uri_encoded_ddh = uri_escape('duckduckhack-template-for-spice');
+ my $uri_encoded_query = uri_escape($query, "^A-Za-z");
+ my $uri_encoded_ddh = quotemeta(uri_escape('duckduckhack-template-for-spice', "^A-Za-z"));
$page =~ s/duckduckhack-template-for-spice/$query/g;
$page =~ s/$uri_encoded_ddh/$uri_encoded_query/g;
+
if ($result) {
p($result);
my $call_extf = $result->caller->module_share_dir.'/spice.js';
Please sign in to comment.
Something went wrong with that request. Please try again.