Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/core/StarDirectives.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/core/StarDirectives.cpp')
-rw-r--r--source/core/StarDirectives.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/core/StarDirectives.cpp b/source/core/StarDirectives.cpp
index fd4ee46..7149f70 100644
--- a/source/core/StarDirectives.cpp
+++ b/source/core/StarDirectives.cpp
@@ -25,8 +25,8 @@ Directives::Entry::Entry(Entry const& other) {
}
StringView Directives::Entry::string(Shared const& parent) const {
- StringView result(parent.string);
- result = result.substr(begin, length);
+ StringView result = parent.string;
+ result = result.utf8().substr(begin, length);
return result;
}