1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-06-30 19:12:48 -05:00

Disable window title reporting by default, since it's a security

hazard. I considered removing it completely, but I can't rule out
the possibility of an OS that actually takes security of its
terminal devices seriously, and which might be able to make sensible
and safe use of this feature.

[originally from svn r3103]
This commit is contained in:
Simon Tatham
2003-04-12 08:59:06 +00:00
parent bc4e41154a
commit 4b6ffd99f1
6 changed files with 32 additions and 3 deletions

View File

@ -2604,7 +2604,8 @@ void term_out(Terminal *term)
*/
break;
case 20:
if (term->ldisc) {
if (term->ldisc &&
!term->cfg.no_remote_qtitle) {
p = get_window_title(term->frontend, TRUE);
len = strlen(p);
ldisc_send(term->ldisc, "\033]L", 3, 0);
@ -2613,7 +2614,8 @@ void term_out(Terminal *term)
}
break;
case 21:
if (term->ldisc) {
if (term->ldisc &&
!term->cfg.no_remote_qtitle) {
p = get_window_title(term->frontend,FALSE);
len = strlen(p);
ldisc_send(term->ldisc, "\033]l", 3, 0);