File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " rtjscomp" ,
3- "version" : " 0.9.8 " ,
3+ "version" : " 0.9.9 " ,
44 "description" : " php-like server but with javascript" ,
55 "repository" : {
66 "type" : " git" ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ const LINENUMBER_REG = /:([0-9]+)[\):]/;
2929const PATH_CONFIG = 'config/' ;
3030const PATH_DATA = 'data/' ;
3131const PATH_PUBLIC = 'public/' ;
32+ const PLUS_REG = / \+ / g;
3233const RESOLVE_OPTIONS = { paths : [ require ( 'path' ) . resolve ( ) ] } ;
3334const SERVICE_REQUIRE_REG = / \b s e r v i c e _ r e q u i r e \( ( [ ^ ) ] * ) \) / g;
3435const SERVICE_STATUS_PENDING = 0 ; // just added to list
@@ -51,7 +52,7 @@ const log_verbose_flag = process.argv.includes('-v');
5152let log_verbose = log_verbose_flag ;
5253let port_http = 0 ;
5354let port_https = 0 ;
54- let upload_limit = 10 * 1024 * 1024 ;
55+ let upload_limit = 0 ;
5556let compression_enabled = true ;
5657let exiting = false ;
5758/// any path -> file
@@ -942,7 +943,9 @@ const querystring_parse = (querystring, result) => {
942943 if ( ! key ) {
943944 throw 'key is empty' ;
944945 }
945- value = decodeURIComponent ( value || '' ) ;
946+ value = decodeURIComponent (
947+ ( value || '' ) . replace ( PLUS_REG , ' ' )
948+ ) ;
946949 if ( key in result ) {
947950 if ( ( result [ key ] instanceof Array ) !== array ) {
948951 throw 'type mismatch' ;
You can’t perform that action at this time.
0 commit comments