Branch: Tag:

2008-11-05

2008-11-05 12:34:02 by Martin Stjernholm <mast@lysator.liu.se>

Fix to work in 7.8 (Crypto.string_to_hex is no more).

Rev: server/etc/modules/Roxen.pmod:1.252

1:   // This is a roxen pike module. Copyright © 1999 - 2004, Roxen IS.   // - // $Id: Roxen.pmod,v 1.251 2008/11/05 12:17:30 stewa Exp $ + // $Id: Roxen.pmod,v 1.252 2008/11/05 12:34:02 mast Exp $      #include <roxen.h>   #include <config.h>
2329:    case "hex":    if(String.width(val) > 8)    RXML.run_error( "Cannot hex encode wide characters.\n" ); -  return Crypto.string_to_hex(val); +  return String.string2hex(val);       case "base64":    case "base-64":
2492:   //! Compat.   //! @endstring   //! + //! Returns zero if the encoding isn't recognized. + //!   //! @example   //! UTF8-encode a string for use in a Mysql query in an HTML page:   //! @expr{roxen_encode(val, "utf8.mysql.html")@}.