diff --git a/config.json b/config.json index 3791a3a..f534a00 100644 --- a/config.json +++ b/config.json @@ -16,10 +16,19 @@ "stackHidden": false, "enableRemoteLogBrowsing": true, "exposeServerVersion": true, - "disableServerSideScriptExpose": false, + "disableServerSideScriptExpose": true, "rewriteMap": [ { - "definingRegex": "/\\/invoke500\\/\\?/", + "definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/", + "replacements": [ + { + "regex": "/^\\/serverSideScript\\.js($|[#?])/", + "replacement": "/NONEXISTENT_PAGE$1" + } + ] + }, + { + "definingRegex": "/^\\/invoke500\\/\\?/", "replacements": [ { "regex": "/\\/invoke500\\/\\?/", @@ -28,7 +37,7 @@ ] }, { - "definingRegex": "/\\/invoke500\\/.+\\//", + "definingRegex": "/^\\/invoke500\\/.+\\//", "replacements": [ { "regex": "/\\/\\?/", @@ -45,7 +54,7 @@ ] }, { - "definingRegex": "/\\/invoke500\\/.+/", + "definingRegex": "/^\\/invoke500\\/.+/", "replacements": [ { "regex": "/\\?/", @@ -58,7 +67,7 @@ ] }, { - "definingRegex": "/\\/invoke500\\//", + "definingRegex": "/^\\/invoke500\\//", "replacements": [ { "regex": "/\\/invoke500\\//", @@ -67,7 +76,7 @@ ] }, { - "definingRegex": "/\\/invoke500$/", + "definingRegex": "/^\\/invoke500$/", "replacements": [ { "regex": "/\\/invoke500/", diff --git a/index.html b/index.html index a621d7f..3ab3848 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,7 @@ - SVR.JS 3.8.0 + SVR.JS 3.8.1 -

Welcome to SVR.JS 3.8.0

+

Welcome to SVR.JS 3.8.1



@@ -40,8 +40,16 @@   "exposeServerVersion": true,
  "disableServerSideScriptExpose": false,
  "rewriteMap": [
+       "definingRegex": "/^\\/serverSideScript\\.js(?:$|[#?])/",
+       "replacements": [
+         {
+           "regex": "/^\\/serverSideScript\\.js($|[#?])/",
+           "replacement": "/NONEXISTENT_PAGE$1"
+         }
+       ]
+     },
    {
-       "definingRegex": "/\\/invoke500\\/\\?/",
+       "definingRegex": "/^\\/invoke500\\/\\?/",
      "replacements": [
        {
          "regex": "/\\/invoke500\\/\\?/",
@@ -50,7 +58,7 @@       ]
    },
    {
-       "definingRegex": "/\\/invoke500\\/.+\\//",
+       "definingRegex": "/^\\/invoke500\\/.+\\//",
      "replacements": [
        {
          "regex": "/\\/\\?/",
@@ -67,7 +75,7 @@       ]
    },
    {
-       "definingRegex": "/\\/invoke500\\/.+/",
+       "definingRegex": "/^\\/invoke500\\/.+/",
      "replacements": [
        {
          "regex": "/\\?/",
@@ -80,7 +88,7 @@       ]
    },
    {
-       "definingRegex": "/\\/invoke500\\//",
+       "definingRegex": "/^\\/invoke500\\//",
      "replacements": [
        {
          "regex": "/\\/invoke500\\//",
@@ -89,15 +97,14 @@       ]
    },
    {
-       "definingRegex": "/\\/invoke500$/",
+       "definingRegex": "/^\\/invoke500$/",
      "replacements": [
        {
          "regex": "/\\/invoke500/",
          "replacement": "/invoke500.svr"
        }
      ]
-     }
-   ],
+     }
  ],
  "allowStatus": true,
  "dontCompress": ["/.*\\.ipxe$/","/.*\\.img$/","/.*\\.iso$/"],
  "enableIPSpoofing": false,
@@ -110,11 +117,8 @@

Changes:

Bugs: