Compare commits

..

No commits in common. "1d5fdf35ec828a775221f2bd93519307607b9fb9" and "e4f8ffbf86a915ee59aec14da5b93ccc7944a23a" have entirely different histories.

6 changed files with 5 additions and 10 deletions

View file

@ -55,11 +55,11 @@ server {
proxy_buffering off;
proxy_read_timeout 90; #should be in sync with gunicorn timeout
proxy_connect_timeout 90; #should be in sync with gunicorn timeout
client_max_body_size 32m;
if (!-f $request_filename) {
proxy_pass http://127.0.0.1:2620;
break;
}
client_max_body_size 32m;
}
error_page 400 /;

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
import os
import signal
import sys

View file

@ -66,7 +66,7 @@ pandora.ui.document = function() {
? pandora.user.ui.documents[item.id].position
: 1,
url: '/documents/' + item.id + '/'
+ pandora.safePDFName(item.title + '.' + item.extension),
+ item.title.replace('?', '_') + '.' + item.extension,
width: that.width(),
zoom: 'fit'
})

View file

@ -196,7 +196,7 @@ pandora.ui.documentDialog = function(options) {
? pandora.user.ui.documents[item.id].position
: 1,
url: '/documents/' + item.id + '/'
+ pandora.safePDFName(item.title + '.' + item.extension),
+ item.title.replace('?', '_') + '.' + item.extension,
width: dialogWidth,
zoom: 'fit'
})

View file

@ -2625,11 +2625,6 @@ pandora.openURL = function(url) {
}
};
pandora.safePDFName = function(name) {
name = name.replace('?', '_').replace('#', '_');
return name;
};
pandora.saveURL = function(url, name) {
var link = document.createElement('a');
if (typeof link.download === 'string') {

View file

@ -1,4 +1,4 @@
#!/usr/bin/env python3
#!/usr/bin/env python
from __future__ import print_function
import json
import os