Gossamer Forum
Home : Products : Others : MySQLMan :

Convert html on browse

Quote Reply
Convert html on browse
Thanks for a great script that has saved me hours, if not days!

I have found a small problem, though. When I browse tables with columns that contain html, the html in the cells messes with the "real" html of the page (sometimes leaving it almost unreadable). I have found a quick solution to this problem (I doubt that I am the only one with this problem).

1. Find this line (around line 470-475):

$ary[$i] =~ s/(\r|\n)+/<BR>/g;

2. Add this before that line:

$ary[$i] =~ s/</&lt;/g;
$ary[$i] =~ s/>/&gt;/g;


This should already be in the script in my opinion Smile.

Regards,

/Csson

Quote Reply
Re: Convert html on browse In reply to
Don't know what version you are using...

But in v.1.02...the codes you posted are found in line 494 in the mysql.cgi (which you forgot to mention) script.

But, thanks for the bug fix! Smile

Regards,

Eliot Lee
Quote Reply
Re: Convert html on browse In reply to
Oops, forgot to check which version I was running. I am running 1.03 (the latest version) and in this version (just downloaded a new copy to make sure) that code is missing. Strange.

/Csson