projects
/
pgweb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc56595
)
Properly quote URLs in the sitemap
author
Magnus Hagander
<magnus@hagander.net>
Tue, 12 Jul 2011 13:14:18 +0000
(14:14 +0100)
committer
Magnus Hagander
<magnus@hagander.net>
Tue, 12 Jul 2011 13:14:18 +0000
(14:14 +0100)
pgweb/core/views.py
patch
|
blob
|
blame
|
history
diff --git
a/pgweb/core/views.py
b/pgweb/core/views.py
index 62891cbc4d8cb8f91ff2a54279c56098301a565f..78746e6685bb1d96d46f79f0bd40997570bdf4a8 100644
(file)
--- a/
pgweb/core/views.py
+++ b/
pgweb/core/views.py
@@
-7,6
+7,7
@@
from django.db import connection, transaction
from datetime import date, datetime
from os import uname
+import urllib
from pgweb.util.decorators import ssl_required, cache
from pgweb.util.contexts import NavContext
@@
-122,7
+123,7
@@
def sitemap(request):
for p in get_all_pages_struct():
pages+=1
x.startElement('url', {})
- x.add_xml_element('loc', 'http://www.postgresql.org/%s' %
p[0]
)
+ x.add_xml_element('loc', 'http://www.postgresql.org/%s' %
urllib.quote(p[0])
)
if p[1]:
x.add_xml_element('priority', unicode(p[1]))
x.endElement('url')