diff options
Diffstat (limited to 'src/gempub.c')
-rw-r--r-- | src/gempub.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gempub.c b/src/gempub.c index 1f5d58ce..23846414 100644 --- a/src/gempub.c +++ b/src/gempub.c | |||
@@ -246,10 +246,10 @@ size_t navSize_Gempub(const iGempub *d) { | |||
246 | 246 | ||
247 | size_t navIndex_Gempub(const iGempub *d, const iString *url) { | 247 | size_t navIndex_Gempub(const iGempub *d, const iString *url) { |
248 | parseNavigationLinks_Gempub_(d); | 248 | parseNavigationLinks_Gempub_(d); |
249 | const iString *normUrl = withSpacesEncoded_String(url); | 249 | const iString *canonUrl = withSpacesEncoded_String(url); |
250 | iConstForEach(Array, i, d->navLinks) { | 250 | iConstForEach(Array, i, d->navLinks) { |
251 | const iGempubNavLink *nav = i.value; | 251 | const iGempubNavLink *nav = i.value; |
252 | if (equalCase_String(&nav->url, normUrl)) { | 252 | if (equalCase_String(&nav->url, canonUrl)) { |
253 | return index_ArrayConstIterator(&i); | 253 | return index_ArrayConstIterator(&i); |
254 | } | 254 | } |
255 | } | 255 | } |