Fossil

History of src/encode.c of 7d12ba544f7ecc19
Login

History of src/encode.c of 7d12ba544f7ecc19

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

History of file src/encode.c at check-in 7d12ba544f7ecc19

2025-03-29
16:00
Initialize the $title and $login variable for TH1 used during header/footer generation to a similar string that has characters that are special to HTML escaped to similar-looking unicode characters. This is an defense against XSS attacks that might otherwise result due to errors in a custom skin where the $title variable is misused. ... (file: [e096f027e2] check-in: [5ea6e15bf1] user: drh branch: trunk, size: 23661)
2025-03-25
23:57
Add a new routine "reasonable_bg_color()" that tries to transform a user-requested background color for a check-in or branch into a color that is appropriate for the current skin. The /test-bgcolor web page was added for testing the algorithm. With this enhancement, it is ok to add back the the --bgcolor and --branchcolor options to "fossil commit". ... (file: [595281a3d5] check-in: [f7a18cfcaf] user: drh branch: trunk, size: 22053)
2024-12-17
12:38
Send the --from argument of the "fossil ui" command encoded as hexadecimal, to work around quoting problems on Windows. [forum:/forumpost/cfc22d41b19a1a96|Forum post cfc22d41b19a1a96]. ... (file: [a7749598a1] check-in: [593ceca27d] user: drh branch: trunk, size: 22045)
2023-08-05
16:55
Fix a typo in a comment. ... (file: [6aa825e861] check-in: [19e6905cd2] user: drh branch: trunk, size: 21593)
2023-02-17
14:37
A large collection of compiler warning fixes re. signed/unsigned comparison from Daniel D. ... (file: [e1fb0359db] check-in: [c71f711ec9] user: stephan branch: compiler-warnings, size: 21593)
2022-10-06
14:34
Fix the htmlizer so that it converts 0x0d (carriage return) into 0x20 (ordinary space). Fix for the diff problem reported by [forum:/info/2a63b483f5f048c2|forum post 2a63b483f5f048c2] ... (file: [9518c2e72e] check-in: [050ba62973] user: drh branch: trunk, size: 21588)
2022-02-14
22:43
Make <code>style_set_base_href_suffix()</code> safe for misuse: if the resulting suffix contains unescaped quotes then escape them. <var>$base_href_suffix</var> is intended for interpolation inside of the quoted href attribute. This check-in should address the case when a user of malfunctioning browser (which mishandles quoting) is tricked by an adversary to visit a specially crafted hyperlink. ... (file: [55f290baff] check-in: [d97752f30b] user: george branch: base-href-fix, size: 21461)
2021-01-14
20:51
Fix the JSON string encoder so that it works for non-BMP unicode characters. ... (file: [2cebb291db] check-in: [006b908e0c] user: drh branch: trunk, size: 20758)
2020-11-21
21:04
Performance optimization in the htmlize() utility routine. ... (file: [d18d44e72c] check-in: [4c1d38f97b] user: drh branch: trunk, size: 20808)
2020-07-29
20:08
Fixed %j encoding to backslash-escape double-quotes. It was accounting for them in its allocation but not actually escaping them. ... (file: [e330c36991] check-in: [caa51decb8] user: stephan branch: trunk, size: 20665)
2020-05-15
03:34
Added %!j to %j, which means to include double quotes around the resulting JSON string, and added the corresponding flag to encode_json_string_literal(). ... (file: [4903a6756f] check-in: [2cccc12d04] user: stephan branch: fileedit-ajaxify, size: 20655)
2020-05-14
04:13
Added a parameter to encode_json_string_literal() to allow it to return its output string length, saving a strlen() call in vxprintf() %j. ... (file: [6b89fff994] check-in: [57edd18144] user: stephan branch: fileedit-ajaxify, size: 20416)
2019-09-12
17:11
Use strchr() to improve the performance of defossilize(). ... (file: [6f1fb74fd0] check-in: [0aaefeaba1] user: drh branch: trunk, size: 20220)
16:51
Use strspn() to improve the performance of validate16(). ... (file: [e0cb2bf677] check-in: [c550d6e021] user: drh branch: trunk, size: 20205)
2019-05-17
13:53
Add the %j formatting directive to the customized printf() inside of Fossil. The %j format generates a string with appropriate backslash escapes so that the string can be part of a Javascript string literal. ... (file: [415dce08b3] check-in: [5e9c1d5e04] user: drh branch: trunk, size: 20126)
2018-07-12
23:03
Fully function email message decoder now in place. ... (file: [1e7a6c34c9] check-in: [d0ae0898de] user: drh branch: trunk, size: 19988)
2018-06-21
12:34
Non-working code for the /subscribe and /alerts web pages. This is an incremental check-in. ... (file: [654d926334] check-in: [e91143e813] user: drh branch: email-alerts, size: 19205)
2018-06-20
18:25
Add the "email" command and basic infrastructure for generating outbound email messages. ... (file: [00a02b372e] check-in: [5200323a41] user: drh branch: trunk, size: 19167)
2017-03-06
12:48
For new Docker-generated repositories, use "auto" hash-policy as default: They might be synced with "sha1"-type repositories, this would render those repositories useless. ... (file: [ea4254b5c4] check-in: [9a6256cf08] user: jan.nijtmans branch: trunk, size: 18878)
2017-03-04
14:29
Add the /juvlist webpage that returns a list of all unversioned files as JSON. ... (file: [0ce3f423a3] check-in: [7d12ba544f] user: drh branch: trunk, size: 18881)
2016-11-04
22:12
Fix crash introduced by merge of andygoth-quote-apostrophe ... (file: [edb12a68c5] check-in: [10b98c1e61] user: andygoth branch: andygoth-timeline-ms, size: 16661)
20:49
Integrate andygoth-quote-apostrophe. Needed because single quotes can be used in the tag filter entry, and these single quotes would otherwise be passed through unprotected to the output HTML. ... (file: [9ec5778543] check-in: [68bd2e7bed] user: andygoth branch: andygoth-timeline-ms, size: 16618)
2016-08-10
09:06
Remove unnecessary spacing ... (file: [80397c10bd] check-in: [c3b5f1d2f2] user: jan.nijtmans branch: trunk, size: 16318)
2016-04-10
02:14
Merge trunk. ... (file: [f80d32ba15] check-in: [023601fb14] user: andygoth branch: andygoth-quote-apostrophe, size: 16620)
2016-04-07
18:41
Make usage of 'Usage:' and 'or:' consistent in all help text. ... (file: [56fc8f102e] check-in: [8bfd9951ca] user: rberteig branch: trunk, size: 16320)
2015-05-17
21:55
Render apostrophe in HTML as &amp;#39; so it can be used in single-quoted HTML attributes. ... (file: [fb4865862e] check-in: [82029a2a39] user: andygoth branch: andygoth-quote-apostrophe, size: 16612)
2015-04-27
13:19
Provide help text for all commands and webpages. ... (file: [68aefc417e] check-in: [7ab03289ee] user: drh branch: trunk, size: 16312)
2014-10-16
11:45
Reduce the number of end-of-line spaces. No functional change. ... (file: [e7bda8a6c5] check-in: [20d02ab750] user: jan.nijtmans branch: trunk, size: 16113)
2013-08-31
14:03
Optimized out an unnecessary string copy in appendDiffLine(), #undef'd a local macro in EncodeHttp(). ... (file: [c7e78efef4] check-in: [a789e85ff6] user: stephan branch: trunk, size: 16150)
2013-01-18
02:23
Remove an unused variable from the URL encoder. ... (file: [5bc20d85da] check-in: [5210b9379a] user: drh branch: trunk, size: 16132)
02:11
Avoid unnecessary escaping of : characters in URLs in order to make the links more readable. ... (file: [42bb27dd9e] check-in: [afec3f814d] user: drh branch: trunk, size: 16180)
2012-11-21
15:11
Add the WIKI_LINKSONLY formatting option for the wiki formatter. ... (file: [25c283fc02] check-in: [4615bc8faf] user: drh branch: trunk, size: 16142)
2012-11-04
12:59
Fix typos. ... (file: [9e4401da8b] check-in: [45065c5c28] user: dmitry branch: spelling, size: 15369)
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII ... (file: [f54e2cca6d] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 15368)
2012-06-27
12:30
Begin a branch that is modified to use sqlite4 instead of sqlite3 as the storage engine. This check-in compiles (on unix) but does not work. ... (file: [22c7384dc9] check-in: [6823912746] user: drh branch: sqlite4, size: 15372)
2012-03-29
14:54
Add vim modline everywhere ... (file: [f709dd00fc] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 15411)
2011-04-27
18:21
Attempt to get Fossil working on windows systems that do not use UTF8 in the shell. ... (file: [f09c83a1a6] check-in: [e805fa8db9] user: drh branch: windows-i18n, size: 15369)
2011-03-07
18:32
Disallow the use of "i", "l", and "o" characters in hexadecimal constants. ... (file: [0830c306b8] check-in: [c320b850b9] user: drh branch: trunk, size: 15345)
2010-10-23
12:58
Additional performance enhancements. ... (file: [515f057353] check-in: [6caba36de5] user: drh branch: experimental, size: 15345)
2010-10-15
17:13
Replace all malloc() calls with fossil_malloc(). The fossil_malloc() routine panics rather than return a NULL pointer. ... (file: [a89e7058a6] check-in: [8f41b2fa75] user: drh branch: trunk, size: 15291)
2010-10-14
19:14
Remove all use of ctypes.h in order to avoid compiler warnings and other problems associated with changing locales. ... (file: [7caeeab7f7] check-in: [2fac809165] user: drh branch: trunk, size: 15388)
2010-10-09
17:18
Fix a potential segfault on "fossil pull". Ticket [71439c64b8d6af66f5e34]. ... (file: [b867f98a2e] check-in: [26c262cd03] user: drh branch: trunk, size: 15374)
2010-10-08
10:59
Obscure the text of the remote-url password so that it is not easily visible using the sqlite3 CLI. ... (file: [596a491d38] check-in: [cfbbad3d48] user: drh branch: trunk, size: 15324)
2010-09-09
09:59
Allow ~ and % characters in the URL. Ticket [74ccf51c7d24414b1]. ... (file: [1f6e71e23f] check-in: [a203674aa5] user: drh branch: trunk, size: 13020)
2010-05-16
19:08
Change from GPL to the Simplified BSD License. ... (file: [96ec5ff1a4] check-in: [c06edd231f] user: drh branch: clear-title, size: 13000)
2010-02-24
22:39
Back out the changes of [0e2281fc8a757] since they were causing a segfault while trying to enter a new ticket. The ticket [6b498a792c0] should still be fixed. ... (file: [4eb47ca1d6] check-in: [5a6634c453] user: drh branch: trunk, size: 13276)
2010-02-17
16:34
fix typo in isspace() ... (file: [c66f7e938e] check-in: [ef43b99573] user: rwilson branch: trunk, size: 13143)
2010-02-16
20:02
fixed [6b498a792c] ... (file: [9549c2c71b] check-in: [0e2281fc8a] user: ron branch: trunk, size: 13143)
2009-09-12
21:03
Update the base-64 encoder/decoder to conform to RFC 1421. Add test commands to verify both the endoder and the decoder. ... (file: [ffe3dddccb] check-in: [c198613ae1] user: drh branch: trunk, size: 13212)
2009-08-27
18:33
Various small performance enhancements. ... (file: [7772615572] check-in: [4c37130fde] user: drh branch: trunk, size: 12691)
2008-10-25
20:43
Get "configuration push" working. Fix bugs in concealed-field processing of tickets. ... (file: [1fff362c9d] check-in: [31e94c0a04] user: drh branch: trunk, size: 12161)
2008-02-05
20:48
Moved string_xform.c code into encode.c, since that code serves a similar purpose. ... (file: [4abb9f0b2b] check-in: [91f151d57a] user: stephan branch: trunk, size: 13916)
2007-11-21
13:52
Append the pathname to the login cookie name so that separate cookies are used for each server. ... (file: [e65fd74ba6] check-in: [d2b4469934] user: drh branch: trunk, size: 12150)
2007-07-28
07:09
When accessing a remote repository, if there is a username/password specified as part of the URI, use these to login. ... (file: [6c31150f72] check-in: [3dcaed8d86] user: dan branch: trunk, size: 12150)
2007-07-21
14:10
Initial check-in of m1 sources. ... (file: [af8a8318d1] check-in: [dbda8d6ce9] user: drh branch: trunk, size: 12073)