Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 257273 Details for
Bug 348835
www-misc/awstats-6.95: utf8 links are not decoded
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch, works fine for me
awstats-support-utf8-links.patch (text/plain), 1.09 KB, created by
Nikoli
on 2010-12-16 06:06:51 UTC
(
hide
)
Description:
patch, works fine for me
Filename:
MIME Type:
Creator:
Nikoli
Created:
2010-12-16 06:06:51 UTC
Size:
1.09 KB
patch
obsolete
>diff --git a/wwwroot/cgi-bin/awstats.pl b/wwwroot/cgi-bin/awstats.pl >index 9976407..b3dd63e 100755 >--- a/wwwroot/cgi-bin/awstats.pl >+++ b/wwwroot/cgi-bin/awstats.pl >@@ -8496,7 +8496,17 @@ sub ShowHostInfo { > #------------------------------------------------------------------------------ > sub ShowURLInfo { > my $url = shift; >- my $nompage = CleanXSS($url); >+ my $nompage = $url; >+ >+ # Convert coded keywords (utf8,...) to be correctly reported in HTML page. >+ if ( $PluginsLoaded{'DecodeKey'}{'decodeutfkeys'} ) { >+ $nompage = CleanXSS( >+ DecodeKey_decodeutfkeys( >+ $nompage, $PageCode || 'iso-8859-1' >+ ) >+ ); >+ } >+ else { $nompage = CleanXSS( DecodeEncodedString($nompage) ); } > > # Call to plugins' function ShowInfoURL > foreach my $pluginname ( keys %{ $PluginsLoaded{'ShowInfoURL'} } ) { >@@ -8530,10 +8540,11 @@ sub ShowURLInfo { > { > $urlprot = 'https'; > } >+ > print "<a href=\"" > . XMLEncode("$urlprot://$SiteDomain$newkey") > . "\" target=\"url\">" >- . XMLEncode($nompage) . "</a>"; >+ . "$nompage</a>"; > } > else { > print XMLEncode($nompage);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 348835
: 257273