Branch: Tag:

2003-08-07

2003-08-07 14:27:02 by Martin Nilsson <mani@lysator.liu.se>

Don't use search for has_value

Rev: lib/modules/Filesystem.pmod/System.pike:1.15
Rev: lib/modules/Graphics.pmod/Graph.pmod/create_graph.pike:1.10
Rev: lib/modules/Protocols.pmod/DNS.pmod:1.79
Rev: lib/modules/Protocols.pmod/HTTP.pmod/Query.pike:1.61
Rev: lib/modules/Protocols.pmod/LysKOM.pmod/Raw.pike:1.16
Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.23
Rev: lib/modules/Protocols.pmod/SNMP.pmod/agent.pike:1.5
Rev: lib/modules/Protocols.pmod/TELNET.pmod:1.21
Rev: lib/modules/SSL.pmod/handshake.pike:1.34
Rev: lib/modules/Stdio.pmod/Terminfo.pmod:1.18

163:    //! 200-399 an exception will be thrown.    void simple_mail(string to, string subject, string from, string msg)    { -  if (search(msg,"\r\n")==-1) +  if (!has_value(msg, "\r\n"))    msg=replace(msg,"\n","\r\n"); // *simple* mail /Mirar    send_message(parse_addr(from), ({ parse_addr(to) }),    (string)MIME.Message(msg, (["mime-version":"1.0",