Skip to content

Commit 8965f2c

Browse files
authored
Merge pull request #36 from virxkane/issue32
Fixed converting url in OPDSUtil.LinkInfo.convertHref().
2 parents 05e23e2 + 39d8feb commit 8965f2c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

android/src/org/coolreader/crengine/OPDSUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public static String convertHref( URL baseURL, String href ) {
141141
return baseURL.getProtocol() + ":" + href;
142142
if ( href.startsWith("/") )
143143
return baseURL.getProtocol() + "://" + hostPort + href;
144-
if ( !href.startsWith("http://") ) {
144+
if ( !href.startsWith("http://") && !href.startsWith("https://") ) {
145145
return baseURL.getProtocol() + "://" + hostPort + dirPath(baseURL.getPath()) + "/" + href;
146146
}
147147
return href;

0 commit comments

Comments
 (0)