Skip to content

Commit

Permalink
allow upload of SVG files; SVG MIME added
Browse files Browse the repository at this point in the history
  • Loading branch information
justparking committed Jan 29, 2020
1 parent 67892e5 commit c626b76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1333,6 +1333,7 @@ public static Credentials getCredentials(String authorizationField) {
"eot application/vnd.ms-fontobject " +
"woff application/x-font-woff " +
"7z application/x-7z-compressed " +
"svg image/svg+xml " +
"class application/octet-stream ");
while (st.hasMoreTokens())
theMimeTypes.put(st.nextToken(), st.nextToken());
Expand Down
2 changes: 1 addition & 1 deletion nodel-webui-js/src/nodel.js
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ var simplematch = new RegExp(/^(.+?)(?:\(| \(|$)/i);
var colours = {'primary':'','success':'','danger':'','warning':'','info':'','default':''};
var throttle = {'logs': []};
var allowedtxt = ['py','xml','xsl','js','json','html','htm','css','java','groovy','sql','sh','cs','bat','ini','txt','md','cmd'];
var allowedbinary = ['png','jpg','ico'];
var allowedbinary = ['png','jpg','ico','svg','zip','7z','exe'];
var nodeList = {'lst':[], 'flt':'', 'end':20, 'hosts':{}};
var nodeListreq = null;

Expand Down

0 comments on commit c626b76

Please sign in to comment.