Alex Schroeder kensanata

kensanata pushed to main at kensanata/oddmuse

3 months ago

kensanata pushed to main at kensanata/oddmuse

1 year ago

kensanata pushed to main at kensanata/oddmuse

1 year ago

kensanata pushed tag 2.4.2 to kensanata/oddmuse

1 year ago

kensanata pushed tag 2.4.1 to kensanata/oddmuse

1 year ago

kensanata pushed to main at kensanata/oddmuse

1 year ago

kensanata pushed to main at kensanata/oddmuse

  • 99af4d984d Handle [an example](#foo "Title")
  • 88f4fe3b89 Whitespace
  • 851f2f77e8 Handle image/right Everyone loves hacky regexes♥
  • 975e15c9f8 Don't turn all whitespace into a space We want to honor NO-BREAK SPACE and the like!
  • d235d6ac47 GetId returns the normal form of $id. This means, "2022-07-15 The Joy of Exploration", which arrives as "2022-07-15%20The%20Joy%20of%20Exploration", gets turned into "2022-07-15_The_Joy_of_Exploration". The problem is that when posting, $id = FreeToNormal(shift), so pages are always written to the page with underscores. If you then request the raw history of a page, however, no such call was happening and so no keep files were found by DoHistory.
  • View comparison for these 5 commits »

1 year ago

kensanata pushed to main at kensanata/oddmuse

  • f0d0942bfb namespaces: remove underscore from page title

2 years ago

kensanata pushed to main at kensanata/oddmuse

3 years ago

kensanata pushed to main at kensanata/oddmuse

3 years ago

kensanata pushed tag 2.4.0 to kensanata/oddmuse

3 years ago

kensanata pushed tag 2.3.16 to kensanata/oddmuse

3 years ago

kensanata deleted branch master at kensanata/oddmuse

3 years ago

kensanata pushed to main at kensanata/oddmuse

  • 536757e8e2 ban-contributors: fix get_range For 8.21.11.127 we have to issues: the key in the result set is netrange and not inetnum, and the result for netrange is a list of ranges and not just a single range. The new code no longer presumes to know the keys. It just goes through all of them, trying to find something that looks like a range. When it finds an array reference, it goes through each entry, looking for a range. The first key where are least one range is found is returned, with all the ranges for that key, in our case that would be 8.0.0.0 - 8.127.255.255 and 8.21.11.0 - 8.21.11.255. The ban-contributors code then presents two forms, one for each match.
  • 00af1aa638 New CSS
  • c2cf3e7b43 namespaces: reload @IndexList before saving Without this commit, what used to happen is that if ban-contributors banned a contributor in a namespace, the pageidx of the main space got overwritten with the pageidx of the namespace: since the values of @IndexList and %IndexHash remained unchanged.
  • 05c14d37b2 ban-contributors: another regexp improvement
  • fc3614f291 ban-contributors: improved the IP regex generator I did not want to use Number::Range::Regex because those regular expressions are somewhat hard to read, so instead some test cases from actual spammers were added and the code rewritten to be easier to understand. It should now also be obvious when it breaks.

3 years ago

kensanata created new branch main at kensanata/oddmuse

3 years ago

kensanata pushed to master at kensanata/oddmuse

  • 536757e8e2 ban-contributors: fix get_range For 8.21.11.127 we have to issues: the key in the result set is netrange and not inetnum, and the result for netrange is a list of ranges and not just a single range. The new code no longer presumes to know the keys. It just goes through all of them, trying to find something that looks like a range. When it finds an array reference, it goes through each entry, looking for a range. The first key where are least one range is found is returned, with all the ranges for that key, in our case that would be 8.0.0.0 - 8.127.255.255 and 8.21.11.0 - 8.21.11.255. The ban-contributors code then presents two forms, one for each match.
  • 00af1aa638 New CSS
  • c2cf3e7b43 namespaces: reload @IndexList before saving Without this commit, what used to happen is that if ban-contributors banned a contributor in a namespace, the pageidx of the main space got overwritten with the pageidx of the namespace: since the values of @IndexList and %IndexHash remained unchanged.
  • 05c14d37b2 ban-contributors: another regexp improvement
  • fc3614f291 ban-contributors: improved the IP regex generator I did not want to use Number::Range::Regex because those regular expressions are somewhat hard to read, so instead some test cases from actual spammers were added and the code rewritten to be easier to understand. It should now also be obvious when it breaks.
  • View comparison for these 74 commits »

3 years ago

kensanata pushed tag 2.3.15 to kensanata/oddmuse

4 years ago

kensanata pushed to master at kensanata/oddmuse

4 years ago

kensanata pushed to master at kensanata/oddmuse

  • 7094ec098b stuff/server: fix UTF-8 encoding problem Sadly, I would have thought that the correct solution is the following, at the end, once we have $server: $server->cgi_init( sub { require CGI; CGI::initialize_globals(); CGI->import(qw(-utf8)); }); This is based on the documentation of HTTP::Server::Simple::CGI, and skimming its source code, and the documentation of the use pragma, and the pseudo code in its documentation. The workaround of setting $CGI::PARAM_UTF8 directly is based on reading the CGI.pm source code. This is definitely a hack.
  • 04fe4d6991 stuff/server: better instructions at the beginning
  • View comparison for these 2 commits »

4 years ago

kensanata pushed to master at kensanata/oddmuse

  • 570a6b1f07 stuff/server: use ./wiki.pl instead of wiki.pl
  • 4211d6aa03 definition-lists: new
  • 5941fcd7e6 recaptcha: fix tests check_answer_v2 requires an answer or it throws the error "To check answer, the user response token must be provided". That causes all the tests to fail. Thus, if no answer is provided, we return 0 (false).
  • f3df2eb289 Merge pull request #21 from fancypantalons/master Switch to reCAPTCH v2 API.
  • 8b975cd5e5 Switch to reCAPTCH v2 API. The v1 API has been deprecated, so this changeset switches to using the v2 API as exposed by the Captch::reCAPTCHA module. The main changes are to switch to the _v2 methods for get_html and check_answer, plus necessary changes to the check_answer parameters to make the code compatible with the new form field naming.
  • View comparison for these 5 commits »

4 years ago