From a5f61e8b1b212f65d9e2202b32b4aef2225f2a3f Mon Sep 17 00:00:00 2001 From: apfelmaennchen Date: Sat, 20 Sep 2008 18:28:58 +0000 Subject: [PATCH] YaCy-UI: - fixed xss vulnurability - improved add bookmark dialog git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@5189 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/yacy/ui/css/base.css | 16 +++++--- htroot/yacy/ui/css/jquery.dialog.css | 22 ++++++---- htroot/yacy/ui/css/jquery.flexigrid.css | 3 +- htroot/yacy/ui/index.html | 3 ++ htroot/yacy/ui/sidebar/sidebar_1.html | 2 +- htroot/yacy/ui/yacyui-bookmarks.html | 54 ++++++++++++++++--------- 6 files changed, 67 insertions(+), 33 deletions(-) diff --git a/htroot/yacy/ui/css/base.css b/htroot/yacy/ui/css/base.css index 0268c296e..4baf75732 100644 --- a/htroot/yacy/ui/css/base.css +++ b/htroot/yacy/ui/css/base.css @@ -34,7 +34,8 @@ div.main { margin-bottom: .5em; padding: 2px 5px; border: 1px solid #CCCCCC; - font: normal small Arial, Helvetica, sans-serif; + font: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; color: #999999; } .filter { @@ -42,7 +43,8 @@ div.main { margin-bottom: .5em; padding: 2px 5px; border: 1px solid #CCCCCC; - font: normal small Arial, Helvetica, sans-serif; + font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; color: #999999; } .selector { @@ -50,15 +52,17 @@ div.main { margin-bottom: .5em; padding: 2px 5px; border: 1px solid #CCCCCC; - font: normal small Arial, Helvetica, sans-serif; + font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; color: #999999; } .small { - font: normal small Arial, Helvetica, sans-serif; - font-size: 9px; + font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 10px; } .normal { - font: normal small Arial, Helvetica, sans-serif; + font: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; + font-size: 12px; } /* Sidebar */ diff --git a/htroot/yacy/ui/css/jquery.dialog.css b/htroot/yacy/ui/css/jquery.dialog.css index e3a1bacec..e16aadfb7 100644 --- a/htroot/yacy/ui/css/jquery.dialog.css +++ b/htroot/yacy/ui/css/jquery.dialog.css @@ -12,7 +12,7 @@ background: url(../img/tab.png) no-repeat; padding: 2px; height: 28px; - _height: 29px; + /*_height: 29px;*/ } .bmdialog .ui-dialog.ui-draggable .ui-dialog-titlebar, @@ -20,13 +20,13 @@ cursor: move; } -.bmdialog .ui-dialog .ui-dialog-titlebar-close, -.bmdialog.ui-dialog .ui-dialog-titlebar-close { +.bmdialog .ui-dialog .ui-dialog-titlebar-ajax, +.bmdialog.ui-dialog .ui-dialog-titlebar-ajax { width: 16px; height: 16px; - background: url(../img-2/cancel.png) no-repeat; + background: url(../loading.gif) no-repeat; position:absolute; - top: 6px; + top: 8px; right: 7px; cursor: default; } @@ -71,9 +71,16 @@ margin: 6px; } -/* Dialog handle styles */ +/* Dialog handle styles .bmdialog .ui-dialog .ui-resizable-n, -.bmdialog.ui-dialog .ui-resizable-n { cursor: n-resize; height: 6px; width: 100%; top: 0px; left: 0px; background: transparent url(i/dialog-n.gif) repeat scroll center top; } +.bmdialog.ui-dialog .ui-resizable-n { + cursor: n-resize; + height: 6px; + width: 100%; + top: 0px; + left: 0px; + background: transparent url(i/dialog-n.gif) repeat scroll center top; +} .bmdialog .ui-dialog .ui-resizable-s, .bmdialog.ui-dialog .ui-resizable-s { cursor: s-resize; height: 8px; width: 100%; bottom: 0px; left: 0px; background: transparent url(i/dialog-s.gif) repeat scroll center top; } @@ -95,3 +102,4 @@ .bmdialog .ui-dialog .ui-resizable-ne, .bmdialog.ui-dialog .ui-resizable-ne { cursor: ne-resize; width: 9px; height: 29px; right: 0px; top: 0px; background: transparent url(i/dialog-ne.gif); } + */ \ No newline at end of file diff --git a/htroot/yacy/ui/css/jquery.flexigrid.css b/htroot/yacy/ui/css/jquery.flexigrid.css index bbf7de60b..2cbc43a6b 100644 --- a/htroot/yacy/ui/css/jquery.flexigrid.css +++ b/htroot/yacy/ui/css/jquery.flexigrid.css @@ -3,8 +3,9 @@ .flexigrid { - font-family: Arial, Helvetica, sans-serif; + font-family: "Trebuchet MS", Trebuchet, Verdana, Helvetica, Arial, sans-serif; font-size: 11px; + color: #27537a; position: relative; border: 0px solid #eee; overflow: hidden; diff --git a/htroot/yacy/ui/index.html b/htroot/yacy/ui/index.html index 4ecbfb8c1..90f5a157d 100644 --- a/htroot/yacy/ui/index.html +++ b/htroot/yacy/ui/index.html @@ -32,6 +32,9 @@