1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Bug #27884: mysql --html does not quote HTML special characters in output

Fix encoding of field values and names in HTML output from mysql client.
This commit is contained in:
Jim Winstead
2009-04-28 10:54:26 -07:00
parent 90815182f0
commit fb2d75cb75
3 changed files with 14 additions and 4 deletions

View File

@ -200,4 +200,5 @@ Warning (Code 1286): Unknown table engine 'nonexistent2'
Warning (Code 1266): Using storage engine MyISAM for table 't2'
Error (Code 1050): Table 't2' already exists
drop tables t1, t2;
<TABLE BORDER=1><TR><TH>&lt;</TH></TR><TR><TD>&lt; &amp; &gt;</TD></TR></TABLE>
End of tests

View File

@ -367,4 +367,10 @@ remove_file $MYSQLTEST_VARDIR/tmp/bug31060.sql;
drop tables t1, t2;
#
# Bug #27884: mysql --html does not quote HTML special characters in output
#
--exec $MYSQL --html test -e "select '< & >' as \`<\`"
--echo
--echo End of tests