Skip to content

Commit

Permalink
Stylesheets: support percent-encoded stylesheet links
Browse files Browse the repository at this point in the history
  • Loading branch information
poire-z committed Jan 21, 2023
1 parent ea5b8ba commit 050e653
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crengine/src/lvtinydom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4897,6 +4897,8 @@ class LVImportStylesheetParser
LVContainerRef container = _document->getContainer();
if (!container.isNull()) {
LVStreamRef cssStream = container->OpenStream(cssFile.c_str(), LVOM_READ);
if (cssStream.isNull())
cssStream = container->OpenStream(DecodeHTMLUrlString(cssFile).c_str(), LVOM_READ);
if (!cssStream.isNull()) {
lString32 css;
css << LVReadTextFile(cssStream);
Expand Down

0 comments on commit 050e653

Please sign in to comment.