mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 16:58:21 -05:00
Fix exceptions caused by plain_link with no path
This commit is contained in:
@@ -137,7 +137,7 @@ ${first_defined(kw[1:])}
|
||||
<%
|
||||
if (not target or target == '_parent') and c.cname:
|
||||
target = '_top'
|
||||
if c.cname and path.startswith('http://'):
|
||||
if c.cname and path and path.startswith('http://'):
|
||||
target = '_top'
|
||||
if target:
|
||||
kw['target'] = target
|
||||
|
||||
Reference in New Issue
Block a user