norikra 0.0.19-java → 0.0.20-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Norikra
2
- VERSION = "0.0.19"
2
+ VERSION = "0.0.20"
3
3
  end
@@ -5,10 +5,12 @@ require 'norikra/logger'
5
5
  require 'norikra/webui'
6
6
 
7
7
  require 'sinatra/base'
8
+ require 'erubis'
8
9
 
9
10
  class Norikra::WebUI::Handler < Sinatra::Base
10
11
  set :public_folder, File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'public'))
11
12
  set :views, File.absolute_path(File.join(File.dirname(__FILE__), '..', '..', '..', 'views'))
13
+ # set :erb, :escape_html => true # hmmm, this doesn't works...
12
14
 
13
15
  enable :sessions
14
16
 
@@ -73,7 +73,7 @@
73
73
  <td>
74
74
  <button class="btn btn-default btn-xs show-query-expression"
75
75
  data-toggle="popover" data-placement="left" data-html="true"
76
- data-content="<%= "query:<pre>" + query.expression + "</pre>" %>">show query</button>
76
+ data-content="query:<pre><%= escape_html query.expression %></pre>">show query</button>
77
77
  </td>
78
78
  <td><%= pool[query.name] %></td>
79
79
  <td>
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: norikra
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.19
5
+ version: 0.0.20
6
6
  platform: java
7
7
  authors:
8
8
  - TAGOMORI Satoshi