Comparing my local tree with the SVN 14074 there are some simple fixes
that could be useful to others.
Pick up what you want.

contrib/xhb/hblog.prg

In line 465 replace IF HB_EnumIndex() < nLen with IF xPar:__enumIndex() < nLen

contrib/hbtip/sendmail.prg

the syntax "text/plain;filename=" + cFname + cFext is wrong the
correct one is: "text/plain; name=" + cFname + cFext
all the strings in hb_SetMimeType should be fixed

contrib/hbtip/utils.c

s_findStringMimeType is wrong since it returns text/plain for every
file type that is text but html/js/css/xml are all text files so it
makes the mime find useless.

static const char * s_findStringMimeType( const char * cData, int iLen )
{
   int iCount;
#if 0
   HB_BOOL bFormFeed;
#endif
...
#if 0
   /* Failure; let's see if it's a text/plain. */
 ...
#endif
   return NULL;

contrib/hbtip/cgi.prg

IMHO it should be removed. I did it years ago but it wrongly mix cgi
protocol, session management and html generation.
This things should be done at the application level not in a language lib.

best regards,
Lorenzo
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to