From 67046e613a5ce0d7466c40ec5f658b94d99a1a58 Mon Sep 17 00:00:00 2001 From: Chad Birch Date: Fri, 1 Mar 2013 12:25:07 -0700 Subject: [PATCH] Fix exceptions caused by plain_link with no path --- r2/r2/templates/utils.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r2/r2/templates/utils.html b/r2/r2/templates/utils.html index fac76d26c..ffe60ae81 100755 --- a/r2/r2/templates/utils.html +++ b/r2/r2/templates/utils.html @@ -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