Compare commits

..

No commits in common. "8a16c7e37fd5905cf5dddacfaa682da14a9a5193" and "cabcbeb35d95630e01acca1cef68998a8271d51f" have entirely different histories.

3 changed files with 2 additions and 5 deletions

View file

@ -13,7 +13,6 @@ from django.conf import settings
from django.db import models, transaction from django.db import models, transaction
from django.db.models import Max from django.db.models import Max
from django.contrib.auth import get_user_model from django.contrib.auth import get_user_model
from django.core.cache import cache
from oxdjango.fields import JSONField from oxdjango.fields import JSONField

View file

@ -429,7 +429,7 @@ pandora.ui.documentInfoView = function(data, isMixed) {
function formatLink(value, key) { function formatLink(value, key) {
return (Ox.isArray(value) ? value : [value]).map(function(value) { return (Ox.isArray(value) ? value : [value]).map(function(value) {
return key return key
? '<a href="/documents/' + key + '=' + pandora.escapeQueryValue(value) + '">' + value + '</a>' ? '<a href="/documents/' + key + '=' + value + '">' + value + '</a>'
: value; : value;
}).join(', '); }).join(', ');
} }

View file

@ -1110,9 +1110,7 @@ pandora.escapeQueryValue = function(value) {
if (!Ox.isString(value)) { if (!Ox.isString(value)) {
value = value.toString(); value = value.toString();
} }
return value return value.replace(/%/, '%25')
.replace(/%/, '%25')
.replace(/&/, '%26')
.replace(/_/g, '%09') .replace(/_/g, '%09')
.replace(/\s/g, '_') .replace(/\s/g, '_')
.replace(/</g, '%0E') .replace(/</g, '%0E')