Fossil

History of src/event.c of 8c8ccac9beaee2bd
Login

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

History of file src/event.c at check-in 8c8ccac9beaee2bd

2025-12-23
16:06
Assorted fixes of typos and grammar in code comments. No functional changes. file: [63a324e1c5] check-in: [e2bdc10572] user: danield branch: trunk, size: 19482
2025-07-23
15:58
Minor optimization: replace calls to mprintf("%s", X) with fossil_strdup(X). file: [0ebdcb072a] check-in: [4c3e1728e1] user: danield branch: trunk, size: 19481
2025-03-07
15:56
Enhance codecheck1.c to detect cases where style_header() is called with arguments that are not easily proven to be HTML-free. Fix multiple calls to style_header() to prove they are always HTML-free. file: [442c68d726] check-in: [2da41072ff] user: drh branch: enhanced-defenses, size: 19481
2024-11-27
17:07
Wrap the list of attachments displayed on technotes/events, tickets and wiki pages in their own `section' HTML element with CSS class name 'attachlist'. Inspired by [forum:8da5a5d868 | forum thread 8da5a5d868]. file: [bbf9e79dfc] check-in: [b111adbe35] user: florian branch: attachlist-html-section, size: 19481
2023-09-18
13:18
Try to simplify and rationalize the defenses against cross-site request forgery attacks. A hodgepodge of techniques have been used in the past. This changes attempts to make everything work more alike and to centralize CSRF defenses for easier auditing. file: [ab7ef078ad] check-in: [88a402fe2a] user: drh branch: csrf-defense-enhancement, size: 19486
2023-07-16
20:47
Add calls to cgi_check_for_malice() on many more web pages. Log all 418 responses to the error log. file: [96168f901f] check-in: [40266bf9b2] user: drh branch: verify-options-cgi, size: 19498
2023-06-03
08:49
Merge trunk into forumpost-locking branch. file: [26d78bc337] check-in: [8e7de26aa2] user: stephan branch: forumpost-locking, size: 19472
2023-05-10
18:40
Removed all of the XML-style " />" tag closing markers on empty tags such as "hr", "br", and "input" to placate modern HTML5 validators. That's the doctype we declare, not XHTML, so we should conform. (Besides which, the XHTML dream is dead.) file: [03b5c3aa1d] check-in: [f5482a0a79] user: wyoung branch: trunk, size: 19515
2023-02-21
09:52
Add db_add_unsent() and replace numerous "INSERT OR IGNORE INTO unset" statements with that. file: [589a1b1986] check-in: [98d4ee73d7] user: stephan branch: forumpost-locking, size: 19492
2022-11-18
18:50
Provide the ability to add custom header text on all ticket reports. The header and its mimetype are stored in the REPORTFMT.JX column. file: [03578120eb] check-in: [c06a9980c3] user: drh branch: json-meta-data, size: 19535
2022-11-13
16:26
Apply fixes to all web views to pass WCAG 2.1 tests performed by "axe DevTools" browser extension. Most fixes related to screen reader compatibility, like making sure that form elements have labels. Some color changes to improve contrast on Default skin. Made more HTML5 compliant. Minor improvement to select combo boxes for UX. Improved Search form UX. Two minor bug fixes for malformed HTML. Fixed help pages to resolve issues with non-compliant HTML being generated. Mostly documented at https://fossil-scm.org/forum/forumpost/aafb17a981df4166 file: [8fc3a7be47] check-in: [1f231db380] user: ericwikman branch: wcag-2.1, size: 19812
2021-02-10
21:21
Corrected the order of the N- and P-cards on edits made to technotes. See [forum:/forumpost/74fd8dac3a|/forumpost/74fd8dac3a] for details. file: [8fa5bd3acd] check-in: [1cd6c545ca] user: stephan branch: trunk, size: 19523
2020-12-22
12:13
Removed the parameter from style_finish_page() since the resulting content div class is now redundant with respect to the body class. This potentially breaks CSS made against old class names that a prior commit on this branch changed, but such skins would be made against an unreleased version of Fossil, it's unlikely many are using that first version of the feature anyway, and most of the class names did *not* change unless you were targeting a "div" instead of "body" or just a generic class name. None of the shipping skins are affected. file: [5faaf46b53] check-in: [0e83ca88ce] user: wyoung branch: body-feature-class, size: 19523
11:58
Calling the new style_set_current_feature() function to override the new TH1 variable $current_feature for Fossil UI pages where the page name isn't what we want used as the "body" CSS class. For the most part, this matches the value currently being passed to style_finish_page(), but a few have changed with the benefit of hindsight. Not all calls to style_finish_page() have a corresponding call to the new function since the default value for $current_page now suffices. file: [d73b0156b1] check-in: [8ac0830bfc] user: wyoung branch: body-feature-class, size: 19551
2020-11-07
13:25
Rename the "style_body_and_footer()" interface to "style_finish_page()" and add a more detailed header comment to the implementation. file: [8d34ae9811] check-in: [942b2076c6] user: drh branch: default-css-cleanups, size: 19475
2020-11-05
23:15
Added a parameter to style_footer() and renamed it to match its actual function (style_body_and_footer()) so we can add a CSS class to each page that indicates which major Fossil feature served the page, so we can have module-specific CSS. file: [7b81e9e37d] check-in: [ef5424b683] user: wyoung branch: default-css-cleanups, size: 19491
2020-09-18
07:37
The routines which emit fossil.XYZ.js modules now understand their dependencies, emit any deps in dependency order (recursively), and do not emit a given module more than once (simplifies usage and is an and overall improvement in cacheability). Added the pikchr click support to more pages. file: [9c704eb6be] check-in: [9b2b6f5b1c] user: stephan branch: trunk, size: 19427
2020-06-02
20:05
Add the safe-html setting that determines which kinds of documents are allowed to generate unsafe HTML from Markdown. file: [bb6c6f7abc] check-in: [89b6dda99c] user: drh branch: trunk, size: 19405
17:38
Update the HTML safeing mechanism so that it does the entire Markdown output all at once. In this way it is better able to cope with block markup that spans multiple paragraphs. file: [8a141b844a] check-in: [382f3731ee] user: drh branch: trunk, size: 19372
2020-05-27
22:14
Updated all user-facing documentation and "fossil help" output (plus select internal comments and function names) to use "hash" rather than "UUID". No functional changes. (Yet?) See forum thread https://www.fossil-scm.org/forum/forumpost/ddc14c6866 for discussion. file: [0779c9130b] check-in: [df5201950e] user: wyoung branch: uuid-to-hash, size: 19369
2019-11-18
07:29
When editing a technote via HTTP GET request (e.g., an Edit link, as opposed to POST form submission), retain the previous version's custom color by default. file: [4ed0ac8b62] check-in: [346e9e9760] user: stephan branch: trunk, size: 19360
2019-08-31
16:42
Merge in latest from trunk. file: [ff86985e41] check-in: [aa37639112] user: andybradford branch: db-begin-txn-updates, size: 18905
2019-08-09
16:40
Two additional places where links to /markup_help are useful. file: [44bf50af2f] check-in: [5f328d9f90] user: drh branch: trunk, size: 18911
2019-03-19
14:09
Replace most calls to db_begin_transaction() with db_begin_write() to avoid having a reader locking during a COMMIT. file: [4dfb41d6d3] check-in: [6cc5354821] user: andybradford branch: db-begin-txn-updates, size: 18869
2018-07-15
19:56
Clarify the difference between fossil_fatal() and fossil_panic(). The fossil_panic() interface puts a message on the error log when generating webpages. Otherwise the two routines are identical. Convert some fossil_fatal() calls into fossil_panic() where appropriate. The goal here is to limit messages on the error log to things that require attention from the system administrator, or represent bugs. file: [010f167510] check-in: [3f5ab71744] user: drh branch: trunk, size: 18875
2017-12-06
15:37
Use an HTML5 color chooser dialog in the check-in comment editor. file: [5d4a12252f] check-in: [f8bc3ce8c7] user: drh branch: trunk, size: 18875
2017-09-19
01:36
Change the content_deltify() routine so that looks an array of candidate source artifacts and picks the one that gives the best delta. file: [e0412afa4a] check-in: [a4047a91e3] user: drh branch: trunk, size: 17910
2017-02-28
16:25
Refactoring and cleanup of some of the hash name interfaces. file: [5dcf3c6ff0] check-in: [1c8768b0de] user: drh branch: fossil-2.0, size: 17906
2017-01-07
19:29
Update the manifest parser so that it accepts remark artifacts. file: [7a4eb14911] check-in: [e40143aaff] user: drh branch: remarks-on-checkins, size: 17908
2016-11-04
21:32
Remove unused, undocumented zTitle argument to style_submenu_element(). This argument appears to have been unused all the way back to [dbda8d6ce9]. file: [021db02569] check-in: [187424e891] user: andygoth branch: trunk, size: 17899
2016-08-10
09:06
Remove unnecessary spacing file: [6909284d77] check-in: [c3b5f1d2f2] user: jan.nijtmans branch: trunk, size: 17948
2016-05-03
08:17
Merged trunk and resolved conflicts. Passes all current tests, except for tests wiki-15 and wiki-15.1 in wiki.test. file: [0edff3caac] check-in: [8c8ccac9be] user: rberteig branch: technoteattachcli, size: 17953
2016-04-18
08:17
add TECHNOTEID to fossil wiki commit and allow creation of multiple tech notes with the same timestamp (as already permitted by the GUI). file: [2297422e15] check-in: [aeaef8fbb1] user: dave.vines branch: technoteattachcli, size: 17867
2016-04-01
20:21
Work in progress on spell-check and proof-reading sweep over the help text. file: [f07ee2ca0c] check-in: [2a4e31bd8d] user: rberteig branch: ross-spellcheck, size: 18507
14:47
Remove non tech notes from the list and error checking performed by fossil wiki --technote. Ambiguity of tech note with the same timestamp resolved in favour of the tech note with the highest modification timestamp. file: [e10090d6ba] check-in: [3d2341a296] user: dave.vines branch: technoteattachcli, size: 18488
2016-02-20
13:21
Initial go at replacing URLs in the form ?name=xyz with /xyz except in places where doing so is either known to break (style_set_current_page() calls) or would require notable refactoring (/dir hyperlink generation). file: [43a9c2a76c] check-in: [e8735d6a47] user: stephan branch: slash-name-links, size: 18386
2015-12-31
16:06
Add the ability to have attachments on technotes. Add command-line support for technotes in the "fossil wiki" command. file: [55ac1712c4] check-in: [045deb27ce] user: drh branch: trunk, size: 18421
11:31
[c541b6e734] Add attachments to technotes file: [add0c02280] check-in: [67288e935a] user: dave.vines branch: technoteattach, size: 18682
11:20
[c541b6e734] Add -technote option to wiki command file: [5849f66d56] check-in: [467e493e89] user: dave.vines branch: technoteattach, size: 18215
2015-12-19
14:12
Initial support for managing technotes from the command-line. file: [7ec80402c4] check-in: [0a13f4cb5f] user: djv branch: technote-cli, size: 17829
2015-02-20
00:29
Add code to the technote editor so that if some future bug causes it to generate an invalid technote artifact, an error will be generated and the artifact will not be applied to the repository. file: [8ee9f8359e] check-in: [3ee0046529] user: drh branch: trunk, size: 15355
2015-02-19
21:07
Fix a bug in tech-note editing that was generating an invalid artifact. This check-in fixes the bug, but tech-notes still need work. There ought to be a safety mechanism that checks to ensure that the new artifact does parse correctly before it is committed, for example. file: [cfd6b706fe] check-in: [c123e3aa07] user: drh branch: trunk, size: 15147
2015-02-14
17:56
Rename the "event artifact" type to "technical note" or "technote". The format of the artifact is unchanged. Add the ability to enter and edit technotes as markdown and plain text in addition to wiki. file: [74e3a78c4f] check-in: [bd50848eb5] user: drh branch: trunk, size: 15005
12:24
When the user is "nobody", make the g.anon permission vector for "anonymous" available in addition to g.perm. Hyperlinks to pages that would be available to anonymous are shown rather than suppressed. When permission is denied and control jumps to login_needed() a new flag shows whether or not logging in as "anonymous" would help. Work in progress. file: [e56a09fc68] check-in: [2f50d427a9] user: drh branch: login-enhancements, size: 13351
2015-02-11
11:09
Use the "%S" formatting option for human-readable SHA1 hashes and "%!S" for SHA1 hashes in URLs. The length of these hashes are compile-time configurable using FOSSIL_SHA1_PREFIX_LEN and FOSSIL_SHA1_URLPREFIX_LEN, respectively. Defaults: 10 and 16. file: [7b4e962d4c] check-in: [1fee0377e4] user: drh branch: trunk, size: 13284
2015-02-06
03:28
Do not let the "Lines:" box go below one on the /timeline. If it does, automatically revert to 10 lines. Also, arrange for the default number of lines to be 50 in most cases, but only 11 if the c= (circa) query parameter is used. Use n=all to see the entire history of the graph. file: [f835240456] check-in: [99e081efe5] user: drh branch: form-submenu, size: 13283
03:00
Add the cgi_query_parameters_to_url() routine and use it to cause all query parameters on timeline to be exported. (Need to make this same changes for all other uses of url_render()). Make "context" timelines 11 entries by default. Other cleanups. file: [1a98db819c] check-in: [b6e1f61aaa] user: drh branch: form-submenu, size: 13288
2015-02-05
22:20
Some clean-up of the "Tech-Note" (formerly "Event") processing. Lots more opportunity for improvement here. file: [cbd08eb7f4] check-in: [d7eb21e8a6] user: drh branch: form-submenu, size: 13287
2014-10-20
15:01
Add a custom static analysis program that verifies the arguments to printf-style varargs routines used in Fossil. Adjust the source code to be more robust for printf format errors and to fix a few minor problems found by the static checker. file: [26fd16a9f3] check-in: [0a7e326fa4] user: drh branch: compile-time-print-checking, size: 13453
2014-03-08
16:14
Clean up and standardize the handling of user "nobody" and the g.zLogin global variable. file: [afe15eaf30] check-in: [840b762206] user: drh branch: trunk, size: 13512
2014-02-28
10:34
Remove unnecessary spaces at end-of-lines. No change in functionality. file: [1dc85793c6] check-in: [3df526ca41] user: jan.nijtmans branch: trunk, size: 13498
2013-10-15
01:21
Centralize and simplify the commit/ticket hook integration. file: [8746ce8c2e] check-in: [6cf28968db] user: mistachkin branch: tkt-change-hook, size: 13516
2013-10-11
08:36
Make sure that EVERY source file includes "config.h" before any other system includes. This is the first step in making fossil compile for Win64 using MinGW. file: [433f9f2e05] check-in: [c30cd93b91] user: jan.nijtmans branch: trunk, size: 13507
2013-10-04
09:30
Better error-message in case of "manifest file is malformed" file: [9e7b7208ae] check-in: [1eb438d61a] user: jan.nijtmans branch: pending-review, size: 13507
2013-08-30
03:06
Change most uses of fossil_panic() to fossil_fatal(). Modify fossil_panic() to avoid allocating heap memory and to close the database connection before doing anything else. file: [a6138d64c4] check-in: [320f14363e] user: drh branch: trunk, size: 13501
2013-08-26
20:42
If an event/attachment comment ends with spaces, strip them from the C-card file: [3d7e320709] check-in: [ff87296f85] user: jan.nijtmans branch: trunk, size: 13501
07:56
Document that the C-card in events is optional. Proof: [/event/bfdf42305400f6ca]. Don't output C-card in events when not necessary (code copied from attach.c) file: [5d7f9267ef] check-in: [6a03e9329b] user: jan.nijtmans branch: trunk, size: 13497
2013-08-17
19:38
Resolved ticket [05f4bbc266]. file: [c891787329] check-in: [635598ed93] user: stephan branch: trunk, size: 13334
2013-07-26
15:46
Change <td><b></b></td> to <th></th>. file: [db3ce586de] check-in: [a60b008f1a] user: joel branch: trunk, size: 13328
2013-05-02
13:52
rebase file: [a7cf63cb87] check-in: [e89269e51b] user: jan.nijtmans branch: short-cgi-params, size: 13345
13:28
Allow boolean parameters sbs= and v= to taken values like "on", "off", "yes", and "no". Assign meaningful defaults even if the argument is omitted. file: [20e26d45b3] check-in: [e09d84f297] user: drh branch: trunk, size: 13363
07:58
See alternative implementation on trunk. Was: Improve cgi parameter parsing in add_param_list(). Boolean options, like "v" and "sbs" can now take forms like "v=true" or simply "v" (in stead of "v=1") or "v=off" (in stead of "v=0"). /timeline already accepted the shortened form, now /event, /vdiff and other web pages do as well. file: [4ef660347a] check-in: [71d48d346c] user: jan.nijtmans branch: short-cgi-params, size: 13363
2013-05-01
09:42
Add -v|--verbose as alternative to "-l|--detail" everywhere. And "v=" and "verbose=" as alternative to the "detail=" URL parameter. file: [ce71494f1f] check-in: [5214a2a8b8] user: jan.nijtmans branch: trunk, size: 13387
2013-04-26
09:29
One more: --new-file makes the diff command much more verbose. Fix /event?v= file: [23d5463937] check-in: [0a5abbee92] user: jan.nijtmans branch: verbose, size: 13154
08:28
Rename --detail, --showfiles, --files to -v|--verbose (but keep original as deprecated) file: [0865ebc7c1] check-in: [34ed0afc8a] user: jan.nijtmans branch: verbose, size: 13160
2012-11-20
13:42
Only suppress bad hyperlinks for check-in comments and tickets. Continue to show the broken hyperlinks on wiki pages. file: [479cd7832e] check-in: [26ac392308] user: drh branch: trunk, size: 13169
2012-08-29
13:57
Allow UTF-8 characters in sources. translate.exe will translate it to ASCII file: [eddf32aaf1] check-in: [9f6abc5968] user: jan.nijtmans branch: msvc-broken, size: 13152
2012-06-29
15:59
Update to the latest SQLite4 that requires converting preprocessor macro prefixes from "SQLITE_" to "SQLITE4_". file: [3a7ba9c9e8] check-in: [0328d68181] user: drh branch: sqlite4, size: 13156
2012-06-11
17:33
merge trunk again... (previous merge was not from latest trunk from fossil-scm.org) file: [211bcc01d5] check-in: [7a57ab6465] user: mgagnon branch: mgagnon_fix, size: 13195
2012-04-28
08:03
Refinements to the new hyperlink logic and spider defense. file: [e094f8b1c4] check-in: [d9c8a7dd73] user: drh branch: spider-defense, size: 13153
07:15
Changes anchor tags (&lt;a&gt;) so that the href= attribute can be set by javascript rather than by HTML. This is to make it harder for spiders to follow the hyperlinks to every diff and annotation in the project history. It all seems to work, but it needs further testing and review before going live. file: [9f3296d237] check-in: [8ae52fc418] user: drh branch: spider-defense, size: 13181
2012-03-29
14:54
Add vim modline everywhere file: [26e8a44946] check-in: [a496d8e88d] user: mgagnon branch: mgagnon_fix, size: 13395
2011-09-14
17:45
Refactored g.okXXX perms flags to g.perm.XXX. file: [450531e50a] check-in: [34b4dec0bc] user: stephan branch: stephan-hack, size: 13353
2011-09-07
08:12
Make it easier to use Events as quick notes: Display the title just above the text on Event pages. If there's no title in the wiki text, use the comment as a title. file: [e1dfbca819] check-in: [27a4518e13] user: ben branch: ben-minorchanges, size: 13612
2011-02-24
17:11
Infrastructure changes: Simplify content_put() to a single parameter. Add content_put_ex() with lots of extra parameters. Add isPrivate parameters to content_put_ex() and content_new(). file: [62533a9a18] check-in: [1b4516168d] user: drh branch: trunk, size: 13326
2011-02-17
20:44
Make sure manifest_crosslink() resets its input blob and that callers know this and do not attempt to reuse that blob. file: [8a7c29c1a6] check-in: [d22519e500] user: drh branch: trunk, size: 13335
2011-01-07
16:20
Record fractional seconds for artifact times. file: [b77370e137] check-in: [722d7cac97] user: drh branch: trunk, size: 13322
2010-12-23
02:22
Add new function fossil_strcmp() that works like strcmp() except that it handles NULL arguments correctly. Use fossil_strcmp() in place of strcmp() in many places in the code. file: [c698fa71ea] check-in: [31c52c7b3e] user: drh branch: trunk, size: 13349
2010-12-16
14:46
Use relative URLs for hyperlinks whereever possible, so that Fossil can work better behind a reverse proxy. file: [89bdf9e346] check-in: [daeb10f65f] user: drh branch: trunk, size: 13335
2010-12-09
15:52
New cloning algorithm appears to be much faster at the cost of slightly more network bandwidth. Fully backwards compatible. Need to look at the network bandwidth issue prior to merging with trunk. Perhaps a command-line option for the clone command to select between slow-and-small or fast-and-larger. file: [3487ddc55a] check-in: [8bb8be26ca] user: drh branch: experimental, size: 13339
2010-10-26
19:01
merge from trunk file: [c6edc346e2] check-in: [4260bc6a22] user: wolfgang branch: StvPrivateHook2 , size: 13385
2010-10-15
20:37
Refactor the control-artifact parser. file: [d6d79a0a82] check-in: [da9fcdc95a] user: drh branch: experimental, size: 13336
16:11
merge from trunk file: [6be3ae9e6c] check-in: [c127179362] user: wolfgang branch: wolfgangHelpCmd, size: 13533
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: [18be1623f5] check-in: [2fac809165] user: drh branch: trunk, size: 13484
2010-10-11
15:49
merge from trunk file: [dfb2c26e4a] check-in: [c9df947761] user: wolfgang branch: wolfgangHelpCmd, size: 13529
13:43
Allow events to be referenced using a prefix of their full event-id. file: [3fe7eabd3f] check-in: [f2025072b4] user: drh branch: trunk, size: 13480
2010-10-10
16:46
adding help cross references file: [308ada9628] check-in: [c880f0920f] user: wolfgang branch: wolfgangHelpCmd, size: 13318
2010-10-03
11:52
corrected some HTML-validation problems file: [426328a21e] check-in: [04b33f77a1] user: wolfgang branch: experimental, size: 13269
00:21
Add support for tags on events, including the ability to display a timeline of all events with a particular tag. file: [02436ff98d] check-in: [a1fcb97dfa] user: drh branch: experimental, size: 13248
2010-10-02
18:31
User interface refinements and some documentation added for events. file: [cda336f77c] check-in: [e5bcc0c924] user: drh branch: experimental, size: 11576
16:35
Add hyperlinks for creating new events and the ability to browse through this history of changes for an event. Add the ability to show "details" of an event. file: [297c07892a] check-in: [ba06d3449b] user: drh branch: experimental, size: 11414
12:37
Event background colors are now working. file: [6b4d37a073] check-in: [6f93ca9418] user: drh branch: experimental, size: 8821
03:28
Add the ability to assign background colors to the timeline entries for events. file: [f9052a7595] check-in: [a5110365a3] user: drh branch: experimental, size: 7697
00:25
Added: First working code for displaying and editing events. file: [19f741fc27] check-in: [419903ebd7] user: drh branch: experimental, size: 6479