Encode referrer string before rendering the HTML as fix for issue #32
This commit is contained in:
parent
48203098e2
commit
2ec2404b03
2 changed files with 2 additions and 0 deletions
|
@ -593,6 +593,7 @@ Site.prototype.referrers_macro = function() {
|
|||
sql.traverse(function() {
|
||||
if (this.requests && this.referrer) {
|
||||
this.text = encode(this.referrer.head(50));
|
||||
this.referrer = encode(this.referrer);
|
||||
self.renderSkin("$Site#referrer", this);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -408,6 +408,7 @@ Story.prototype.referrers_macro = function(param, limit) {
|
|||
sql.traverse(function() {
|
||||
if (n < limit && this.requests && this.referrer) {
|
||||
this.text = encode(this.referrer.head(50));
|
||||
this.referrer = encode(this.referrer);
|
||||
self.renderSkin("$Story#referrer", this);
|
||||
}
|
||||
n += 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue