Branch: Tag:

2000-02-19

2000-02-19 06:12:32 by Martin Nilsson <mani@lysator.liu.se>

HTML-decode input

Rev: server/modules/graphics/graphic_text.pike:1.205

1:   // This is a roxen module. Copyright © 1996 - 2000, Idonex AB.   //    - constant cvs_version="$Id: graphic_text.pike,v 1.204 2000/02/16 14:20:28 per Exp $"; + constant cvs_version="$Id: graphic_text.pike,v 1.205 2000/02/19 06:12:32 nilsson Exp $";      #include <module.h>   inherit "module";
332:       if(m->nowhitespace)    { -  sscanf(c,"%*[ \n\r\t]%s",c); -  sscanf(reverse(c),"%*[ \n\r\t]%s",c); -  c=reverse(c); +  c=String.trim_all_whites(c);    m_delete(m, "nowhitespace");    }   
345:    m_delete(m, "preparse");    }    +  c=html_decode_string(c); +  +  if(m->maxlen) {    c = c[..(((int)m->maxlen||QUERY(deflen))-1)];    m_delete(m, "maxlen"); -  +  }       return c;   }