Tcl Library Source Code

Artifact [70d2c58991]
Login

Artifact 70d2c5899171dd6ea5a8cdf121c6102d315cab768e5c58ab363e100c13d33350:

Attachment "diff.patch" to ticket [66063baec4] added by anonymous 2023-02-10 02:37:38. (unpublished)
--- ncgi.tcl.orig	2023-02-10 11:16:46.316558800 +0900
+++ ncgi.tcl	2023-02-10 11:17:27.248153800 +0900
@@ -271,6 +271,8 @@
     set str [string map [list + { } "\\" "\\\\" \[ \\\[ \] \\\]] $str]
 
     # prepare to process all %-escapes
+    regsub -all -nocase -- {%([F][0-4])%([89AB][A-F0-9])%([89AB][A-F0-9])%([89AB][A-F0-9])} \
+	$str {[encoding convertfrom utf-8 [DecodeHex \1\2\3\4]]} str
     regsub -all -nocase -- {%([E][A-F0-9])%([89AB][A-F0-9])%([89AB][A-F0-9])} \
 	$str {[encoding convertfrom utf-8 [DecodeHex \1\2\3]]} str
     regsub -all -nocase -- {%([CDcd][A-F0-9])%([89AB][A-F0-9])} \