paste* backends: Stricter URL matching
This commit is contained in:
parent
619b97669d
commit
1a4fd0d320
2 changed files with 3 additions and 3 deletions
|
|
@ -44,7 +44,7 @@ class PastealaconBrowser(BaseBrowser):
|
|||
|
||||
@id2url(PastealaconPaste.id2url)
|
||||
def get_paste(self, url):
|
||||
_id = re.match(self.PASTE_URL, url).groupdict()['id']
|
||||
_id = re.match('^%s$' % self.PASTE_URL, url).groupdict()['id']
|
||||
return PastealaconPaste(_id)
|
||||
|
||||
def fill_paste(self, paste):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue