URI encode the compiler when requesting

Fixes #238
dev/git-series/gccdum
Matt Godbolt 6 years ago
parent 76381e3502
commit 7eb0d035c4

@ -1,6 +1,6 @@
# Default settings for GCC Explorer.
defaultCompiler=g52
compilers=g44:g45:g46:clang35:g51:g52:gdef:msp430g453:cl
compilers=/usr/bin/g++:g44:g45:g46:clang35:g51:g52:gdef:msp430g453:cl
#compilers=&gcc:&clang:&windows
group.gcc.compilers=gdef:g62
compiler.gdef.exe=/usr/bin/g++

@ -214,7 +214,7 @@ define(function (require) {
}, this), 500);
$.ajax({
type: 'POST',
url: '/api/compiler/' + request.compiler + '/compile',
url: '/api/compiler/' + encodeURIComponent(request.compiler) + '/compile',
dataType: 'json',
contentType: 'application/json',
data: jsonRequest,

Loading…
Cancel
Save