[Refdb-users] problem updating reference with web interface
Status: Beta
Brought to you by:
mhoenicka
From: Martin V. <mar...@ur...> - 2003-04-05 11:11:17
|
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 |