ref: 1f1c7dde36ded092db2201769efd94f2a05bb447
parent: c52ae59ec9f91815b5e889af62a8f35cda0a4e1a
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){--
⑨