Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
|
|
As suggested by https://vndb.org/t2520.168
|
|
Conflicts:
lib/VNDB/DB/VN.pm
lib/VNDB/Handler/VNPage.pm
|
|
|
|
And call bbSubstLinks() from Handler::Discussions rather than
DB::Discussions - it's not a transformation that the DB layer should do,
IMO.
|
|
Patch from https://vndb.org/t5564.13
|
|
Apparently there are networks where a single visitor is assigned random
addresses in the /23 range for each request. This should fix the
login/registration form on such networks, and makes the login throttling
more robust (and easier to trigger for innocent people, but judging from
monitoring the throttle table, failed logins arent that common).
I wonder if /23 is enough, but we'll see.
|
|
The . match doesn't match "any byte". Without the /s flag, it doesn't
match newline characters.
|
|
|
|
Original patch of SpaceRanger @ http://p.blicky.net/34qcy
I took the liberty of making minor changes to limit the longid match to
dx.x.x and to compact the code a bit.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Its functionality is too simpel to require it as a special dependency,
seriously.
|
|
Unknown/incorrect tags should be outputted as-is, as was the case with
the previous implementation.
Also cleaned up the id and exid if statement to be slightly shorter.
|
|
It does not use split() anymore, the input string is parsed in a single
pass using a global regex. It's now a lot faster on larger input. The
page generation time of /t937 went back from ~350ms to ~55ms (on the
beta, the production server is slower).
Also made several tiny improvements while I was at it:
- multiple successive newlines aren't removed within [code]
- truncating a message with $maxlength also removes trailing
spaces and interpunction
- multiple successive spaces are removed outside of [code] (and thus
don't count towards the length of the message)
The function should be mostly equivalent in regards to all other things,
ignoring a few minor border cases that weren't documented in the first
place. The URL regex (and the idea of a global regex) came from bpaste:
http://g.blicky.net/bpaste.git/commit/?id=ac7b16d0ec0f195d00a0a79698f67c3010e8cf7d
|
|
Searching for "ef" isn't really fun with all those results, this makes
it slightly less broad.
|
|
Conflicts:
lib/VNDB/DB/VN.pm
lib/VNDB/Func.pm
|
|
And made sure the dimensions are truncated in VNDBUtil::imgsize().
Setting the width/height attributes makes sure that the browser can
reserve space for the image when it hasn't been loaded yet, which
prevents the overall page layout from changing while the images are
loading. (which is annoying if your connection isn't all that fast)
|
|
Which may also be useful for other scripts.
|
|
|
|
This adds a new column to the vn table: c_search, which holds the
normalized titles for speedy search results using LIKE.
Also split some functions from VNDB::Func that didn't require YAWF into
a VNDBUtil module, so Multi can also make use of them. The normalization
functions are the same for Multi and VNDB, after all.
The API and Multi::IRC still use the old search, these should be updated
as well.
|