Skip to content

Commit

Permalink
Fixed a small logic error that only exhibited when the web site was i…
Browse files Browse the repository at this point in the history
…nstalled in a subdirectory.
  • Loading branch information
wimleers committed Jun 29, 2009
1 parent 538c996 commit 9e384b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/daemon/processors/link_updater.py
Expand Up @@ -97,7 +97,7 @@ def resolveToAbsolutePath(self, urlstring):

# Resolve paths that are relative to the document root.
if urlstring.startswith(self.base_path):
base_path_exists = os.path.exists(os.path.join(self.document_root, self.base_path))
base_path_exists = os.path.exists(os.path.join(self.document_root, self.base_path[1:]))

if not base_path_exists:
# Strip the entire base path: this is a logical base path,
Expand Down

0 comments on commit 9e384b3

Please sign in to comment.