ExceptionHandler: More Encoding
This commit is contained in:
parent
6989f2d1ef
commit
e9bb160bcc
@ -382,10 +382,10 @@ EOF;
|
|||||||
if ($linkFormat = $this->fileLinkFormat) {
|
if ($linkFormat = $this->fileLinkFormat) {
|
||||||
$link = str_replace(array('%f', '%l'), array($path, $line), $linkFormat);
|
$link = str_replace(array('%f', '%l'), array($path, $line), $linkFormat);
|
||||||
|
|
||||||
return sprintf(' in <a href="%s" title="Go to source">%s line %d</a>', $link, $file, $line);
|
return sprintf(' in <a href="%s" title="Go to source">%s line %d</a>', htmlspecialchars($link), htmlspecialchars($file), $line);
|
||||||
}
|
}
|
||||||
|
|
||||||
return sprintf(' in <a title="%s line %3$d" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">%s line %d</a>', $path, $file, $line);
|
return sprintf(' in <a title="%s line %3$d" ondblclick="var f=this.innerHTML;this.innerHTML=this.title;this.title=f;">%s line %d</a>', htmlspecialchars($path), htmlspecialchars($file), $line);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user