pastebin backend: stricter URL matching
This commit is contained in:
parent
5e90c1f47c
commit
f11d093e22
1 changed files with 1 additions and 1 deletions
|
|
@ -38,7 +38,7 @@ class BadAPIRequest(Exception):
|
||||||
class PastebinBrowser(BaseBrowser):
|
class PastebinBrowser(BaseBrowser):
|
||||||
DOMAIN = 'pastebin.com'
|
DOMAIN = 'pastebin.com'
|
||||||
ENCODING = 'UTF-8'
|
ENCODING = 'UTF-8'
|
||||||
PASTE_URL = 'http://%s/(?P<id>.+)' % DOMAIN
|
PASTE_URL = 'http://%s/(?P<id>\w+)' % DOMAIN
|
||||||
API_URL = 'http://%s/api/api_post.php' % DOMAIN
|
API_URL = 'http://%s/api/api_post.php' % DOMAIN
|
||||||
PAGES = {PASTE_URL: PastePage,
|
PAGES = {PASTE_URL: PastePage,
|
||||||
'http://%s/' % DOMAIN: PostPage}
|
'http://%s/' % DOMAIN: PostPage}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue