Encode referrer string before rendering the HTML as fix for issue #32

This commit is contained in:
Tobi Schäfer 2009-09-21 15:29:12 +00:00
parent 48203098e2
commit 2ec2404b03
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}
});

View file

@ -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;