Ensure proper escaping of /build/.../contents pages
[?]
Aug 17, 2014, 9:43 PM
KCQ5MRGCAEDQXRLVCICEROWQRQ7CJMKWFUM5VCCOBJUULEQZDXZQCDependencies
- [2]
6KIJX24RGet rid of unnecessary [%- and -%] tags - [3]
YS3AVMLCRemove buildtime and runtime dependency graph. It is useless on normal derivations. - [4]
5DSDXORDhydra: missing plain.tt - [5]
GJFYEU3S* Nix now stores logs by default as bzip2, make sure the build page uncompresses before showing. - [6]
PZL3SZM3Give every page a consistent title - [7]
G5ZR3ZVZhydra: put contents links into html, add links to files from contents page - [8]
5NO7NCKT* Refactoring. - [9]
NUIKDEHL* A quick hack to list the contents of various types of files (RPM, - [10]
OD5FSS5A* Quick hack to allow viewing of dependency graphs (via nix-store -q - [*]
LBNVQXUB* Build the /build stuff in a separate controller.
Change contents
- replacement in src/lib/Hydra/Controller/Build.pm at line 297
my $baseuri = $c->uri_for('/build', $c->stash->{build}->id, 'download', $product->productnr);$baseuri .= "/".$product->name if $product->name;$res =~ s/(\.\/)($relPathRE)/<a href="$baseuri\/$2">$1$2<\/a>/g;#my $baseuri = $c->uri_for('/build', $c->stash->{build}->id, 'download', $product->productnr);#$baseuri .= "/".$product->name if $product->name;#$res =~ s/(\.\/)($relPathRE)/<a href="$baseuri\/$2">$1$2<\/a>/g; - replacement in src/lib/Hydra/Controller/Build.pm at line 340
$c->stash->{contents} = "<pre>$res</pre>";$c->stash->{contents} = decode("utf-8", $res); - replacement in src/root/plain.tt at line 8
[% contents %]<pre>[% HTML.escape(contents) %]</pre>