We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 059a81f commit bbed7b0Copy full SHA for bbed7b0
linkcheck/models.py
@@ -311,7 +311,7 @@ def check_internal(self):
311
elif self.type == "file":
312
# TODO: Assumes a direct mapping from media url to local filesystem path.
313
# This will break quite easily for alternate setups
314
- path = settings.MEDIA_ROOT + unquote(self.internal_url)[len(MEDIA_PREFIX) - 1 :]
+ path = settings.MEDIA_ROOT + unquote(self.internal_url)[len(MEDIA_PREFIX) - 1:]
315
decoded_path = html_decode(path)
316
self.status = os.path.exists(path) or os.path.exists(decoded_path)
317
self.message = "Working file link" if self.status else "Missing Document"
0 commit comments