Encyclopedia: Fix XSS vulnerability (LP: #1832773)
This commit is contained in:
parent
2b012a7075
commit
b4cde99a4d
|
@ -24,7 +24,7 @@ import supybot
|
||||||
import supybot.world as world
|
import supybot.world as world
|
||||||
from importlib import reload
|
from importlib import reload
|
||||||
|
|
||||||
__version__ = "3.2.2"
|
__version__ = "3.3.0"
|
||||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||||
__contributors__ = {
|
__contributors__ = {
|
||||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||||
|
|
|
@ -87,7 +87,7 @@ else:
|
||||||
total = cur.fetchall()[0][0]
|
total = cur.fetchall()[0][0]
|
||||||
|
|
||||||
# Pagination links
|
# Pagination links
|
||||||
plink = ' <a href="factoids.cgi?db=%s&search=%s&order=%%s&page=%%s">%%s</a>' % (database, search)
|
plink = ' <a href="factoids.cgi?db=%s&search=%s&order=%%s&page=%%s">%%s</a>' % (database, utils.web.urlquote(search))
|
||||||
npages = int(math.ceil(float(total) / NUM_PER_PAGE))
|
npages = int(math.ceil(float(total) / NUM_PER_PAGE))
|
||||||
print(' ·\n'.join(list(map(lambda x: plink % (order_url, x, x) if x != page else str(x), range(1, npages+1)))))
|
print(' ·\n'.join(list(map(lambda x: plink % (order_url, x, x) if x != page else str(x), range(1, npages+1)))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue