Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
apachedex
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
apachedex
Commits
78f68acb
Commit
78f68acb
authored
Apr 04, 2013
by
Vincent Pelletier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escape URLs.
parent
8f151042
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
apachedex/__init__.py
apachedex/__init__.py
+2
-2
No files found.
apachedex/__init__.py
View file @
78f68acb
...
@@ -240,8 +240,8 @@ class GenericSiteStats(object):
...
@@ -240,8 +240,8 @@ class GenericSiteStats(object):
append
(
'<td>%s</td><td class="text">%s</td>'
append
(
'<td>%s</td><td class="text">%s</td>'
'<td class="text">%s</td>'
%
(
'<td class="text">%s</td>'
%
(
getHitForUrl
(
referer_counter
),
getHitForUrl
(
referer_counter
),
url
,
escape
(
url
)
,
'<br/>'
.
join
(
'%i: %s'
%
(
hit
,
referer
)
for
referer
,
hit
in
sorted
(
'<br/>'
.
join
(
'%i: %s'
%
(
hit
,
escape
(
referer
)
)
for
referer
,
hit
in
sorted
(
referer_counter
.
iteritems
(),
key
=
ITEMGETTER1
,
reverse
=
True
referer_counter
.
iteritems
(),
key
=
ITEMGETTER1
,
reverse
=
True
)[:
N_REFERRER_PER_ERROR_URL
]),
)[:
N_REFERRER_PER_ERROR_URL
]),
))
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment