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