ref: 80f5df89b2dac2bfd3eb88033016a6f058c9d25d
parent: 22f094452eb89ff916dbb11d099470c8eb818e08
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon Sep 26 12:24:47 EDT 2011
mothra: fix content handling, run uhtml only on actual html content
--- a/sys/src/cmd/mothra/mothra.c
+++ b/sys/src/cmd/mothra/mothra.c
@@ -932,14 +932,14 @@
fd=pipeline("/bin/uncompress", fd);else if(selection->type&GUNZIP)
fd=pipeline("/bin/gunzip", fd);- snprint(cmd, sizeof(cmd), selection->charset[0] ?
- "/bin/uhtml -c %s" : "/bin/uhtml", selection->charset);
- fd = pipeline(cmd, fd);
switch(selection->type&~COMPRESSION){default:
message("Bad type %x in geturl", selection->type);break;
case HTML:
+ snprint(cmd, sizeof(cmd), selection->charset[0] ?
+ "/bin/uhtml -c %s" : "/bin/uhtml", selection->charset);
+ fd = pipeline(cmd, fd);
case PLAIN:
w = www(i = wwwtop++);
if(i >= NWWW){--
⑨