[Refdb-users] problem updating reference with web interface
Status: Beta
Brought to you by:
mhoenicka
From: Markus H. <mar...@mh...> - 2003-04-05 21:03:29
|
Hi, thanks for investigating this. This might actually be the same problem that Thomas reported on this list a few days ago. I haven't done any testing of the web interface on Windows myself, so I have to admit that I was entirely unaware of this problem. I'll try to find out how OSX browsers deal with the line endings and check in an appropriate fix. regards, Markus Martin Vogel writes: > Hi all, > > updating a reference with the web interface seems not to work if you are > using a browser on a MsWindows environment. I looked into the logfile of > refdbc and saw that the CGI data contained "%0D%0A", i.e. DOS-like line > breaks, whereas refdb only wants UNIX-like line breaks. The following > quick-and-dirty hack works for me: > > refdb-0.9.2/src/cgi.c, function static void unescape_url(char* url): > Change the line > <--------------- > url[x] = x2c(&url[y+1]); > ----------------> > to > <--------------- > if ((url[x] = x2c(&url[y+1])) == 0x0D) > { > x--; > } > ----------------> > > but I don't know about MacOS line break coding and there sure is a better > way to deal with this problem. > > Regards > Martin > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ValueWeb: > Dedicated Hosting for just $79/mo with 500 GB of bandwidth! > No other company gives more support or power for your dedicated server > http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/ > _______________________________________________ > Refdb-users mailing list > Ref...@li... > https://lists.sourceforge.net/lists/listinfo/refdb-users > -- Markus Hoenicka mar...@ca... (Spam-protected email: replace the quadrupeds with "mhoenicka") http://www.mhoenicka.de |