From 8abb0277308327780e4c40ee9c3554d4a00c5932 Mon Sep 17 00:00:00 2001 From: Brandon Miller Date: Fri, 25 Aug 2023 12:44:49 -0400 Subject: [PATCH] Replaced $ with ; on targetName for more accurate logging --- link_fixer.py | 1 + 1 file changed, 1 insertion(+) diff --git a/link_fixer.py b/link_fixer.py index 7f18580..41c84eb 100644 --- a/link_fixer.py +++ b/link_fixer.py @@ -398,6 +398,7 @@ def log_locked_items(item_name, locked_by, url): if get_text_mode(): sourceName = hyperlink_string[hyperlink_string.index('>') + 1:hyperlink_string.index('')] targetName = get_item_field(target_item['id'], get_display_attribute()) + targetName = targetName.replace('&', '&') #Encode ampersand as $amp; to match sourceName if sourceName == targetName: logger.info("valid link detected. skipping.")