diff options
author | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2011-09-22 14:49:40 +0200 |
---|---|---|
committer | Arne Georg Gleditsch <argggh@lxr.linpro.no> | 2011-09-22 14:49:40 +0200 |
commit | 84fc580e278aefda62c537a05661db8ae39e55e0 (patch) | |
tree | 71c2ce4cbd570e7523c6bf72d3c191c6e27d8af8 /lib | |
parent | cd756357a261aec69995b42d1e8b8b47903e6706 (diff) |
Make "+" a legal character in release strings.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/LXRng/Context.pm | 2 | ||||
-rw-r--r-- | lib/LXRng/Web.pm | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/LXRng/Context.pm b/lib/LXRng/Context.pm index 959151b..ab8d9f2 100644 --- a/lib/LXRng/Context.pm +++ b/lib/LXRng/Context.pm @@ -86,7 +86,7 @@ sub new { $$self{'tree'} = $args{'tree'}; } - if ($$self{'tree'} =~ s/[+]([^+]*)$//) { + if ($$self{'tree'} =~ s/[+](.+)$//) { $$self{'release'} = $1 if $1 ne '*'; } diff --git a/lib/LXRng/Web.pm b/lib/LXRng/Web.pm index 20ff899..2c72282 100644 --- a/lib/LXRng/Web.pm +++ b/lib/LXRng/Web.pm @@ -240,7 +240,7 @@ sub source { 'pjx_load_file' => '', 'pjx_load_fragment' => '', 'pjx_releases' => ''); - $pjx->js_encode_function('escape'); + $pjx->js_encode_function('encodeURIComponent'); if ($context->prefs and $context->prefs->{'navmethod'} eq 'ajax') { print($query->header(-type => 'text/html', |