diff options
author | jcid <devnull@localhost> | 2008-09-27 15:36:16 +0200 |
---|---|---|
committer | jcid <devnull@localhost> | 2008-09-27 15:36:16 +0200 |
commit | 44d669d639d8999b1302d37227aa349008019b27 (patch) | |
tree | 74bf7176e7e23c53e37dc53ded57ed6aa635eb61 /src | |
parent | 3858fd4431dd8053789c51e615df0c8c00f3fc1d (diff) |
- Set WM_CLASS="dillo" for X11
- Security fix in a_UIcmd_set_msg.
Diffstat (limited to 'src')
-rw-r--r-- | src/dillo.cc | 2 | ||||
-rw-r--r-- | src/form.cc | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/dillo.cc b/src/dillo.cc index aef192b8..f8293f0b 100644 --- a/src/dillo.cc +++ b/src/dillo.cc @@ -101,6 +101,8 @@ int main(int argc, char **argv) a_Bw_init(); a_Cookies_init(); + // Sets WM_CLASS hint on X11 + fltk::Window::xclass("dillo"); // Create a new UI/bw pair BrowserWindow *bw = a_UIcmd_browser_window_new(0, 0, NULL); diff --git a/src/form.cc b/src/form.cc index 78f2e66d..05fa918d 100644 --- a/src/form.cc +++ b/src/form.cc @@ -1529,7 +1529,7 @@ void DilloHtmlReceiver::enter (dw::core::ui::Resource *resource) /* The control can submit form. Show action URL. */ msg = URL_STR(form->action); } - a_UIcmd_set_msg(html->bw, msg); + a_UIcmd_set_msg(html->bw, "%s", msg); } /* |