BASH CGI stripping line feeds in variable
I'm in the process of converting my old CGIs that rely on the now-defunct <ISINDEX> to use <FORM> directives. Everything seems fine EXCEPT the results when displayed in browsers lose their line feeds. If I push the variable to a file and cat it at the console it's fine, but even if I cat the file in the browser headed by <pre> it still shows the variable without line feeds.
Anyone have any clue as to why or a fix?
Much appreciated.
|