Skip to content

Commit 312f71d

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 759f5b0 + ca5252e commit 312f71d

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

android/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
55
package="org.coolreader"
66
android:installLocation="auto"
7-
android:versionName="3.2.7-1" android:versionCode="2071">
7+
android:versionName="3.2.9-1" android:versionCode="2091">
88
<supports-screens
99
android:xlargeScreens="true"
1010
android:largeScreens="true"

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ android {
88
targetSdkVersion 26
99
// When new version released, version code must be incremented at least by 8
1010
// for compatibility with ABI versioning of split apk (see below).
11-
versionCode 2071
12-
versionName "3.2.7-1"
11+
versionCode 2091
12+
versionName "3.2.9-1"
1313
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1414
externalNativeBuild {
1515
cmake {

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;

crengine/src/lvxml.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3455,7 +3455,7 @@ int PreProcessXmlString(lChar16 * str, int len, lUInt32 flags, const lChar16 * e
34553455
int n;
34563456
lChar16 code = 0;
34573457
// TODO: optimize search
3458-
if ( str[k]==';' || str[k]==' ' ) {
3458+
if ( str[i+k]==';' || str[i+k]==' ' ) {
34593459
for ( n=0; def_entity_table[n].name; n++ ) {
34603460
if ( !lStr_cmp( def_entity_table[n].name, entname ) ) {
34613461
code = def_entity_table[n].code;
@@ -3464,7 +3464,7 @@ int PreProcessXmlString(lChar16 * str, int len, lUInt32 flags, const lChar16 * e
34643464
}
34653465
}
34663466
if ( code ) {
3467-
i=k;
3467+
i+=k;
34683468
state = 0;
34693469
if ( enc_table && code<256 && code>=128 )
34703470
code = enc_table[code - 128];

0 commit comments

Comments
 (0)