Skip to content

Commit

Permalink
fix: detect empty baseURL in source template
Browse files Browse the repository at this point in the history
  • Loading branch information
alandefreitas committed Dec 2, 2023
1 parent 4a54692 commit 42ef191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/Lib/ConfigImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ ConfigImpl(
files::makeAbsolute(settings_.sourceRoot, settings_.workingDir)));

// Base-URL has to be dirsy with forward slash style
if (!settings_.baseURL.ends_with('/'))
if (!settings_.baseURL.empty() && settings_.baseURL.back() != '/')
{
settings_.baseURL.push_back('/');
}
Expand Down

0 comments on commit 42ef191

Please sign in to comment.