Commit 31eee02a authored by S Anand's avatar S Anand

BUG: URLEncode FormHandler cell link. Fixes #42 @tejesh.p

parent b57ab9dd
Pipeline #77879 passed with stage
in 2 minutes and 17 seconds
......@@ -102,7 +102,7 @@ Each template receives these variables:
<div class="dropdown-divider"></div>
<% } %>
<% if (colinfo.hideable) { %>
<a class="dropdown-item urlfilter" href="?_c=-<%- colinfo.name %>" data-mode="add">Hide</a>
<a class="dropdown-item urlfilter" href="?_c=-<%- encodeURIComponent(colinfo.name) %>" data-mode="add">Hide</a>
<% } %>
</div><!-- .dropdown-menu -->
</div><!-- .dropdown -->
......@@ -161,7 +161,7 @@ Each template receives these variables:
</td>
<% } else { %>
<td>
<a class="urlfilter" href="?<%- colinfo.name %>=<%- val %>&amp;_offset=">
<a class="urlfilter" href="?<%- encodeURIComponent(colinfo.name) %>=<%- encodeURIComponent(val) %>&amp;_offset=">
<%= disp %>
</a>
</td>
......@@ -322,7 +322,7 @@ Each template receives these variables:
qparts.update({_c: col_name}, 'add')
var hide_col = col_name[0] == '-'
var display_name = hide_col ? col_name.slice(1) : col_name %>
<a href="?_c=<%- col_name %>" data-mode="del" class="badge badge-pill <%- hide_col ? 'badge-dark' : 'badge-danger' %> urlfilter"
<a href="?_c=<%- encodeURIComponent(col_name) %>" data-mode="del" class="badge badge-pill <%- hide_col ? 'badge-dark' : 'badge-danger' %> urlfilter"
title="<%- hide_col ? 'Show' : 'Hide' %> column <%- display_name %>">
<%- display_name %>
</a>
......@@ -333,7 +333,7 @@ Each template receives these variables:
var update = {}
update[key] = col_name
qparts.update(update, 'add') %>
<a href="?<%- key %>=<%- col_name %>" data-mode="del" class="badge badge-pill badge-dark urlfilter" title="Clear <%- key %> filter">
<a href="?<%- encodeURIComponent(key) %>=<%- encodeURIComponent(col_name) %>" data-mode="del" class="badge badge-pill badge-dark urlfilter" title="Clear <%- key %> filter">
<%- key %> = <%- col_name %>
</a>
<% })
......@@ -391,7 +391,7 @@ Each template receives these variables:
var col_link = typeof colinfo.link == 'function' ? colinfo.link({row: row, value: val, index: rowIndex, name: colinfo.name, data: data, format: disp}) : _.template(colinfo.link)({row: row, value: val, index: rowIndex, name: colinfo.name, data: data, format: disp}) %>
<a href="<%- col_link %>" target="_blank"><%= disp %></a>
<% } else { %>
<a class="urlfilter" href="?<%- colinfo.name %>=<%- val %>&amp;_offset=">
<a class="urlfilter" href="?<%- encodeURIComponent(colinfo.name) %>=<%- encodeURIComponent(val) %>&amp;_offset=">
<%= disp %>
</a>
<% } %>
......
Continent,Cross,ID,Name,Shapes,Stripes,Symbols,Text,Union-Flag,c1,c2,c3,c4,c5,c6,c7,c8,date col
Continent,Cross,ID,Name,Shapes,Stripes,Symbols,Text&,Union-Flag,c1,c2,c3,c4,c5,c6,c7,c8,date col
Europe,,AND,Andorra,,Horizontal,,,,35,1,26,0,32,0,0,4,16-01-2013
Asia,,ARE,United Arab Emirates,,Horizontal,,,,24.0,0.0,0.0,25.0,0.0,0.0,25.0,24.0,17-02-2013
Asia,,AFG,Afghanistan,,Vertical,,Country,,28.0,1.0,0.0,33.0,0.0,0.0,33.0,3.0,06-02-2013
Asia,,AFG,Afghanistan,,Vertical,,Country&,,28.0,1.0,0.0,33.0,0.0,0.0,33.0,3.0,06-02-2013
North America,,ATG,Antigua Barbuda,,,,,,50.0,0.0,5.0,0.0,0.0,10.0,25.0,7.0,11-02-2013
Europe,,ALB,Albania,,,Bird,,,87.0,0.0,0.0,0.0,0.0,0.0,12.0,0.0,18-01-2013
Asia,,ARM,Armenia,,Horizontal,,,,33.0,33.0,0.0,0.0,33.0,0.0,0.0,0.0,12-01-2013
......
......@@ -7,7 +7,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 35.0,
"c2": 1.0,
......@@ -27,7 +27,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 24.0,
"c2": 0.0,
......@@ -47,7 +47,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": null,
"Text": "Country",
"Text&": "Country&",
"Union-Flag": null,
"c1": 28.0,
"c2": 1.0,
......@@ -67,7 +67,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 50.0,
"c2": 0.0,
......@@ -87,7 +87,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Bird",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 87.0,
"c2": 0.0,
......@@ -107,7 +107,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 33.0,
......@@ -127,7 +127,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Weapon, Agriculture",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 48.0,
"c2": 0.0,
......@@ -147,7 +147,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Sun",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 2.0,
......@@ -167,7 +167,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 66.0,
"c2": 0.0,
......@@ -187,7 +187,7 @@
"Shapes": "Stars",
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": "Yes",
"c1": 9.0,
"c2": 0.0,
......@@ -207,7 +207,7 @@
"Shapes": "Stars, Crescent",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 31.0,
"c2": 0.0,
......@@ -227,7 +227,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -247,7 +247,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": "Emblem",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -267,7 +267,7 @@
"Shapes": "Circle",
"Stripes": null,
"Symbols": "Sun",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 20.0,
"c2": 0.0,
......@@ -287,7 +287,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -307,7 +307,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 49.0,
"c2": 0.0,
......@@ -327,7 +327,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -347,7 +347,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 67.0,
"c2": 0.0,
......@@ -367,7 +367,7 @@
"Shapes": "Stars",
"Stripes": "Diagonal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 30.0,
"c2": 0.0,
......@@ -387,7 +387,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 30.0,
"c2": 0.0,
......@@ -407,7 +407,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 6.0,
"c2": 0.0,
......@@ -427,7 +427,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -447,7 +447,7 @@
"Shapes": "Stars, Circle",
"Stripes": null,
"Symbols": null,
"Text": "Mottos",
"Text&": "Mottos",
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -467,7 +467,7 @@
"Shapes": "Triangle",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -487,7 +487,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Animal",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 41.0,
"c2": 1.0,
......@@ -507,7 +507,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -527,7 +527,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 64.0,
"c2": 0.0,
......@@ -547,7 +547,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 17.0,
"c2": 0.0,
......@@ -567,7 +567,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": "Plant",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 63.0,
"c2": 0.0,
......@@ -587,7 +587,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 20.0,
"c2": 0.0,
......@@ -607,7 +607,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 16.0,
"c2": 0.0,
......@@ -627,7 +627,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -647,7 +647,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 77.0,
"c2": 0.0,
......@@ -667,7 +667,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 33.0,
......@@ -687,7 +687,7 @@
"Shapes": "Stars",
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 50.0,
"c2": 0.0,
......@@ -707,7 +707,7 @@
"Shapes": "Stars",
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 31.0,
"c2": 0.0,
......@@ -727,7 +727,7 @@
"Shapes": "Stars",
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 97.0,
"c2": 0.0,
......@@ -747,7 +747,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 25.0,
"c2": 0.0,
......@@ -767,7 +767,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Landscape",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -787,7 +787,7 @@
"Shapes": "Stars, Triangle",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 20.0,
"c2": 0.0,
......@@ -807,7 +807,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 8.0,
"c2": 0.0,
......@@ -827,7 +827,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Plant",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 6.0,
......@@ -847,7 +847,7 @@
"Shapes": "Triangle",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 37.0,
"c2": 0.0,
......@@ -867,7 +867,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -887,7 +887,7 @@
"Shapes": "Triangle",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 2.0,
......@@ -907,7 +907,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 76.0,
"c2": 0.0,
......@@ -927,7 +927,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Bird",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 8.0,
"c2": 0.0,
......@@ -947,7 +947,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -967,7 +967,7 @@
"Shapes": "Crescent",
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 6.0,
"c2": 0.0,
......@@ -987,7 +987,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Bird",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 26.0,
"c2": 1.0,
......@@ -1007,7 +1007,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1027,7 +1027,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Bird",
"Text": "Country",
"Text&": "Country",
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1047,7 +1047,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 17.0,
"c2": 0.0,
......@@ -1067,7 +1067,7 @@
"Shapes": "Triangle",
"Stripes": "Diagonal",
"Symbols": "Plant",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 44.0,
"c2": 0.0,
......@@ -1087,7 +1087,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Landscape, Crown",
"Text": "Mottos",
"Text&": "Mottos",
"Union-Flag": null,
"c1": 53.0,
"c2": 1.0,
......@@ -1107,7 +1107,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 32.0,
"c2": 0.0,
......@@ -1127,7 +1127,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1147,7 +1147,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Animal",
"Text": null,
"Text&": null,
"Union-Flag": "Yes",
"c1": 14.0,
"c2": 0.0,
......@@ -1167,7 +1167,7 @@
"Shapes": "Stars",
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1187,7 +1187,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1207,7 +1207,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1227,7 +1227,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 37.0,
"c2": 0.0,
......@@ -1247,7 +1247,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": "Plant",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 40.0,
"c2": 0.0,
......@@ -1267,7 +1267,7 @@
"Shapes": null,
"Stripes": null,
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 35.0,
"c2": 0.0,
......@@ -1287,7 +1287,7 @@
"Shapes": "Stars",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1307,7 +1307,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1327,7 +1327,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1347,7 +1347,7 @@
"Shapes": "Triangle",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 30.0,
"c2": 0.0,
......@@ -1367,7 +1367,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1387,7 +1387,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": "Bird, Weapon",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 1.0,
......@@ -1407,7 +1407,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 31.0,
"c2": 0.0,
......@@ -1427,7 +1427,7 @@
"Shapes": "Triangle",
"Stripes": "Diagonal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 19.0,
"c2": 0.0,
......@@ -1447,7 +1447,7 @@
"Shapes": "Stars",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1467,7 +1467,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Crown",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 35.0,
"c2": 0.0,
......@@ -1487,7 +1487,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": "Weapon",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 47.0,
"c2": 0.0,
......@@ -1507,7 +1507,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 33.0,
"c2": 0.0,
......@@ -1527,7 +1527,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 50.0,
"c2": 0.0,
......@@ -1547,7 +1547,7 @@
"Shapes": null,
"Stripes": "Vertical",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 33.0,
......@@ -1567,7 +1567,7 @@
"Shapes": "Stars",
"Stripes": "Horizontal",
"Symbols": null,
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 0.0,
......@@ -1587,7 +1587,7 @@
"Shapes": "Circle",
"Stripes": "Horizontal",
"Symbols": "Emblem",
"Text": null,
"Text&": null,
"Union-Flag": null,
"c1": 0.0,
"c2": 33.0,
......@@ -1607,7 +1607,7 @@
"Shapes": null,
"Stripes": "Horizontal",
"Symbols": null,
"Text": "Mottos",
"Text&": "Mottos",
"Union-Flag": null,
"c1": 31.0,
"c2": 0.0,
......@@ -1627,7 +1627,7 @@
"Shapes":