projects
/
bookreader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Proxy pass through
[bookreader.git]
/
BookReaderIA
/
datanode
/
BookReaderJSIA.php
diff --git
a/BookReaderIA/datanode/BookReaderJSIA.php
b/BookReaderIA/datanode/BookReaderJSIA.php
index
8b7a4f9
..
d25ce92
100644
(file)
--- a/
BookReaderIA/datanode/BookReaderJSIA.php
+++ b/
BookReaderIA/datanode/BookReaderJSIA.php
@@
-604,7
+604,6
@@
if (typeof(brConfig) != 'undefined') {
function OLAuth() {
function OLAuth() {
- this.authUrl = br.olHost + '/ia_auth/' + br.bookId;
this.olConnect = false;
this.loanUUID = false;
this.permsToken = false;
this.olConnect = false;
this.loanUUID = false;
this.permsToken = false;
@@
-620,8
+619,15
@@
function OLAuth() {
if (0 == cookies[i].indexOf('loan-' + br.bookId)) {
this.permsToken = cookies[i].split('=')[1];
}
if (0 == cookies[i].indexOf('loan-' + br.bookId)) {
this.permsToken = cookies[i].split('=')[1];
}
+
+ // Set olHost to use if passed in
+ if (0 == cookies[i].indexOf('ol-host')) {
+ br.olHost = 'http://' + unescape(cookies[i].split('=')[1]);
+ }
}
}
+ this.authUrl = br.olHost + '/ia_auth/' + br.bookId;
+
return this;
}
return this;
}