Encyclopedia: Fix XSS vulnerability (LP: #1832773)
This commit is contained in:
@ -24,7 +24,7 @@ import supybot
|
||||
import supybot.world as world
|
||||
from importlib import reload
|
||||
|
||||
__version__ = "3.2.2"
|
||||
__version__ = "3.3.0"
|
||||
__author__ = supybot.Author("Krytarik Raido", "krytarik", "krytarik@gmail.com")
|
||||
__contributors__ = {
|
||||
supybot.Author("Dennis Kaarsemaker", "Seveas", "dennis@kaarsemaker.net"): ['Original Author'],
|
||||
|
@ -87,7 +87,7 @@ else:
|
||||
total = cur.fetchall()[0][0]
|
||||
|
||||
# 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))
|
||||
print(' ·\n'.join(list(map(lambda x: plink % (order_url, x, x) if x != page else str(x), range(1, npages+1)))))
|
||||
|
||||
|
Reference in New Issue
Block a user