Skip to content

Commit 3b450bb

Browse files
committed
Trim filenames for about-collection, about us
1 parent f941594 commit 3b450bb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/java/dk/kb/netarchivesuite/solrwayback/properties/PropertiesLoaderWeb.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ public static void initProperties(String propertyFile) {
132132
SEARCH_UPLOADED_FILE_DISABLED = Boolean.parseBoolean(serviceProperties.getProperty(SEARCH_UPLOADED_FILE_DISABLED_PROPERTY));
133133
EXPORT_CSV_FIELDS = serviceProperties.getProperty(EXPORT_CSV_FIELDS_PROPERTY);
134134

135-
ABOUT_TEXT_FILE = serviceProperties.getProperty(ABOUT_TEXT_FILE_PROPERTY);
136-
SEARCH_HELP_TEXT_FILE = serviceProperties.getProperty(SEARCH_HELP_FILE_PROPERTY);
137-
COLLECTION_TEXT_FILE = serviceProperties.getProperty(COLLECTION_TEXT_FILE_PROPERTY);
135+
ABOUT_TEXT_FILE = serviceProperties.getProperty(ABOUT_TEXT_FILE_PROPERTY).trim();
136+
SEARCH_HELP_TEXT_FILE = serviceProperties.getProperty(SEARCH_HELP_FILE_PROPERTY).trim();
137+
COLLECTION_TEXT_FILE = serviceProperties.getProperty(COLLECTION_TEXT_FILE_PROPERTY).trim();
138138

139139
LEAFLET_SOURCE = serviceProperties.getProperty(LEAFLET_SOURCE_PROPERTY);
140140
LEAFLET_ATTRIBUTION = serviceProperties.getProperty(LEAFLET_ATTRIBUTION_PROPERTY);

src/test/resources/properties/solrwaybackweb.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ facets=domain, content_type_norm, type, crawl_year,status_code,public_suffix,sta
4949
# Search help is shown when the icon next to search is clicked.
5050
# Both properties can be changed to a full filepath with a custom text. HTML formating allowed.
5151
# Below values uses the default text files in SolrWayback.
52-
about.text.file=/about_this_archive.txt
52+
about.text.file=/about_this_archive.txt
5353
search.help.text.file=/search_help.txt
5454
collection.text.file=/about_collection.txt
5555

0 commit comments

Comments
 (0)