You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by tv...@apache.org on 2013/05/22 17:13:04 UTC

git commit: [#6239] Remove RelativeLinkRewriter short-circuit

Updated Branches:
  refs/heads/tv/6239 16f0132db -> d17ff1473


[#6239] Remove RelativeLinkRewriter short-circuit

Not sure why it was there to begin with. Asked Rick and he
didn't remember. In any case, removing it has no effect that
I could see. Tests all pass, and artifact links in emails and
web pages are still generated correctly (absolute links in
emails, and relative links in web pages).

Signed-off-by: Tim Van Steenburgh <tv...@gmail.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/d17ff147
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/d17ff147
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/d17ff147

Branch: refs/heads/tv/6239
Commit: d17ff14738ccfd993efa677917c90c4fbba8baf1
Parents: 16f0132
Author: Tim Van Steenburgh <tv...@gmail.com>
Authored: Wed May 22 15:12:44 2013 +0000
Committer: Tim Van Steenburgh <tv...@gmail.com>
Committed: Wed May 22 15:12:44 2013 +0000

----------------------------------------------------------------------
 Allura/allura/lib/markdown_extensions.py |    5 -----
 1 files changed, 0 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/d17ff147/Allura/allura/lib/markdown_extensions.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/markdown_extensions.py b/Allura/allura/lib/markdown_extensions.py
index a1158e5..be2805a 100644
--- a/Allura/allura/lib/markdown_extensions.py
+++ b/Allura/allura/lib/markdown_extensions.py
@@ -238,11 +238,6 @@ class RelativeLinkRewriter(markdown.postprocessors.Postprocessor):
         self._make_absolute = make_absolute
 
     def run(self, text):
-        try:
-            if not request.path_info.endswith('/'): return text
-        except:
-            # Must be being called outside the request context
-            pass
         soup = BeautifulSoup(text)
         if self._make_absolute:
             rewrite = self._rewrite_abs