Enhancements

Fix trying to fetch a ruleset when adding it as a RULE-SET rule to configuration files.
Add URL Decode to username and password field in Telegram-link-style HTTP/Socks 5 links.
Add more function callbacks to template renderer.
Add basic Jinja2Cpp template library support.
INIReader: Add keeping comments and blank lines in direct-save sections.
This commit is contained in:
Tindy X committed 2020-04-08 17:03:27 +08:00
1 parent 31684a3796
commit 41393870ce
7 files changed
+135 -17

No files matched your search

+1 -1
View File
@@ -240,7 +240,7 @@ public:
strLine.erase(lineSize - 1);
lineSize--;
}
if(!lineSize || strLine[0] == ';' || strLine[0] == '#' || (lineSize >= 2 && strLine[0] == '/' && strLine[1] == '/')) //empty lines and comments are ignored
if((!lineSize || strLine[0] == ';' || strLine[0] == '#' || (lineSize >= 2 && strLine[0] == '/' && strLine[1] == '/')) && !inDirectSaveSection) //empty lines and comments are ignored
continue;
if(strLine[0] == '[' && strLine[lineSize - 1] == ']') //is a section title
{