Changeset 469


Ignore:
Timestamp:
Aug 19, 2023, 9:44:10 PM (15 months ago)
Author:
alloc
Message:

21.1.16.4 Release
Webserver forces query parameter decoding to use UTF-8
All mods built with portable debugging symbols

Location:
TFP-WebServer
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • TFP-WebServer/CommandExtensions/CommandExtensions.csproj

    r453 r469  
    3030  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    3131    <OutputPath>..\bin\Mods\TFP_CommandExtensions\</OutputPath>
    32     <DebugType>full</DebugType>
     32    <DebugType>portable</DebugType>
    3333    <DebugSymbols>true</DebugSymbols>
    3434  </PropertyGroup>
     
    3737    <DefineConstants>ENABLE_PROFILER</DefineConstants>
    3838    <DebugSymbols>true</DebugSymbols>
    39     <DebugType>full</DebugType>
     39    <DebugType>portable</DebugType>
    4040  </PropertyGroup>
    4141  <ItemGroup>
  • TFP-WebServer/CommandExtensions/ModInfo.xml

    r463 r469  
    55        <Description value="Additional commands for server operation" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.0" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/MapRendering/MapRendering.csproj

    r463 r469  
    3333  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    3434    <OutputPath>..\bin\Mods\TFP_MapRendering\</OutputPath>
    35     <DebugType>full</DebugType>
     35    <DebugType>portable</DebugType>
    3636    <DebugSymbols>true</DebugSymbols>
    3737  </PropertyGroup>
     
    4040    <DefineConstants>ENABLE_PROFILER</DefineConstants>
    4141    <DebugSymbols>true</DebugSymbols>
    42     <DebugType>full</DebugType>
     42    <DebugType>portable</DebugType>
    4343  </PropertyGroup>
    4444  <ItemGroup>
  • TFP-WebServer/MapRendering/ModInfo.xml

    r463 r469  
    55        <Description value="Render the game map to image map tiles as it is uncovered" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.0" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/MarkersMod/MarkersMod.csproj

    r459 r469  
    3333  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    3434    <OutputPath>..\bin\Mods\Xample_MarkersMod\</OutputPath>
    35     <DebugType>full</DebugType>
     35    <DebugType>portable</DebugType>
    3636    <DebugSymbols>true</DebugSymbols>
    3737  </PropertyGroup>
     
    4040    <DefineConstants>ENABLE_PROFILER</DefineConstants>
    4141    <DebugSymbols>true</DebugSymbols>
    42     <DebugType>full</DebugType>
     42    <DebugType>portable</DebugType>
    4343  </PropertyGroup>
    4444  <ItemGroup>
  • TFP-WebServer/MarkersMod/ModInfo.xml

    r465 r469  
    55        <Description value="Allows placing custom markers on the web map" />
    66        <Author value="Catalysm and Alloc" />
    7         <Version value="21.1.16.1" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/SpaceWizards.HttpListener/SpaceWizards.HttpListener.csproj

    r453 r469  
    3535  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    3636    <OutputPath>..\bin\Mods\TFP_WebServer\</OutputPath>
    37     <DebugType>full</DebugType>
     37    <DebugType>portable</DebugType>
    3838    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    3939    <DefineConstants>UNITY_NETFRAMEWORK</DefineConstants>
     
    4444    <DefineConstants>UNITY_NETFRAMEWORK;ENABLE_PROFILER</DefineConstants>
    4545    <DebugSymbols>true</DebugSymbols>
    46     <DebugType>full</DebugType>
     46    <DebugType>portable</DebugType>
    4747    <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
    4848  </PropertyGroup>
  • TFP-WebServer/SpaceWizards.HttpListener/src/System/Net/HttpListenerRequest.cs

    r377 r469  
    7878        }
    7979
     80        // TFP: Added to manually set the encoding used for the query parameters
     81        private Encoding contentEncoding;
    8082        public Encoding ContentEncoding
    8183        {
    8284            get
    8385            {
     86                if (contentEncoding != null) {
     87                    return contentEncoding;
     88                }
     89               
    8490                if (UserAgent != null && CultureInfo.InvariantCulture.CompareInfo.IsPrefix(UserAgent, "UP"))
    8591                {
     
    8995                        try
    9096                        {
    91                             return Encoding.GetEncoding(postDataCharset);
     97                            contentEncoding = Encoding.GetEncoding(postDataCharset);
     98                            return contentEncoding;
    9299                        }
    93100                        catch (ArgumentException)
     
    105112                            try
    106113                            {
    107                                 return Encoding.GetEncoding(charSet);
     114                                contentEncoding = Encoding.GetEncoding(charSet);
     115                                return contentEncoding;
    108116                            }
    109117                            catch (ArgumentException)
     
    113121                    }
    114122                }
    115                 return Encoding.Default;
     123                contentEncoding = Encoding.Default;
     124                return contentEncoding;
     125            }
     126            set
     127            {
     128                contentEncoding = value;
    116129            }
    117130        }
  • TFP-WebServer/WebServer/ModInfo.xml

    r468 r469  
    55        <Description value="Integrated Webserver for the Web Dashboard and server APIs" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.3" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/WebServer/WebServer.csproj

    r463 r469  
    3333  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    3434    <OutputPath>..\bin\Mods\TFP_WebServer\</OutputPath>
    35     <DebugType>full</DebugType>
     35    <DebugType>portable</DebugType>
    3636    <DebugSymbols>true</DebugSymbols>
    3737  </PropertyGroup>
     
    4040    <DefineConstants>ENABLE_PROFILER</DefineConstants>
    4141    <DebugSymbols>true</DebugSymbols>
    42     <DebugType>full</DebugType>
     42    <DebugType>portable</DebugType>
    4343  </PropertyGroup>
    4444  <ItemGroup>
  • TFP-WebServer/WebServer/src/Web.cs

    r459 r469  
    33using System.IO;
    44using System.Net.Sockets;
     5using System.Text;
    56using SpaceWizards.HttpListener;
    67using UnityEngine;
     
    235236                                }
    236237
     238                                request.ContentEncoding = Encoding.UTF8;
    237239                                RequestContext context = new RequestContext (requestPath, request, response, conn, permissionLevel);
    238240
  • TFP-WebServer/bin/Mods/TFP_CommandExtensions/ModInfo.xml

    r463 r469  
    55        <Description value="Additional commands for server operation" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.0" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/bin/Mods/TFP_MapRendering/ModInfo.xml

    r463 r469  
    55        <Description value="Render the game map to image map tiles as it is uncovered" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.0" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/bin/Mods/TFP_WebServer/ModInfo.xml

    r468 r469  
    55        <Description value="Integrated Webserver for the Web Dashboard and server APIs" />
    66        <Author value="The Fun Pimps LLC" />
    7         <Version value="21.1.16.3" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
  • TFP-WebServer/bin/Mods/Xample_MarkersMod/ModInfo.xml

    r465 r469  
    55        <Description value="Allows placing custom markers on the web map" />
    66        <Author value="Catalysm and Alloc" />
    7         <Version value="21.1.16.1" />
     7        <Version value="21.1.16.4" />
    88        <Website value="" />
    99</xml>
Note: See TracChangeset for help on using the changeset viewer.