Gossamer Forum
Home : Products : Others : Fileman :

Saving CGI files

Quote Reply
Saving CGI files
I attempted to edit my main Fileman today, got an error when I resave CGI files, and now I can not remember the small line of code to place in fileman so I can edit and save cgi files inside of Fileman. Please help!! I think it had something to do with FIX TEXTAREA tags.

Quote Reply
Re: Saving CGI files In reply to
# Fix textarea tags.
$data =~ s,</TEXT-AREA,</TEXTAREA,ig;
$data =~ s/\r//g; ###(VM): REMOVE '\r' (^M)
-------------------------------------------------
pls note also another fix (marked by VM) - it'll remove also the stupid DOS's 'CR' (good for UNIXes :-)