April 8th, 2002

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Apr 8 17:54:38 UTC 2002

Modified Files:
---------------
livejournal/cgi-bin: ljprotocol.pl

Log Message:
------------
avva: Fix a bug: do not call LJ::text_trim() in the protocol
if the data is not UTF-8 (which may be the case if we allow older
clients to post non-ASCII, with $LJ::UNICODE_REQUIRE=0). Calling
text_trim() on them shortened the data arbitarily.


To generate a diff of this commit:
cvs rdiff -r1.90 -r1.91 livejournal/cgi-bin/ljprotocol.pl
http://cvs.livejournal.org/browse.cgi/livejournal/cgi-bin/ljprotocol.pl.diff?r1=1.90&r2=1.91

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Apr 8 17:59:33 UTC 2002

Modified Files:
---------------
livejournal/htdocs: talkpost_do.bml

Log Message:
------------
avva: Several fixes in talkpost_do.bml:

1) Use "UTF-8" not "utf-8" as the default mail encoding if the user
provided none (this way, the behaviour is identical in case the user chose
'none' or 'UTF-8' for mail encoding; it's stored as 'UTF-8' in the 'codes'
table since that's the way the conversion library lists it)
2) In case the parent comment is pre-Unicode, translate to UTF-8 not
just the body but also the subject.
3) Besides $textsubject and $cleansubject there needs to be another
variable, $headersubject, which is what gets put in the RFC822 header
(as opposed to the subject also being put inside the body of the email).
The reason is that the whole text (or HTML) of the body is uniformly
converted into $mailencoding before sending, but RFC822 headers aren't
affected by this; so we need to separately convert $headersubject before
calling MIME::Lite->New().


To generate a diff of this commit:
cvs rdiff -r1.49 -r1.50 livejournal/htdocs/talkpost_do.bml
http://cvs.livejournal.org/browse.cgi/livejournal/htdocs/talkpost_do.bml.diff?r1=1.49&r2=1.50

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Apr 8 18:44:17 UTC 2002

Modified Files:
---------------
livejournal/bin/upgrading: base-data.sql

Log Message:
------------
remove dup lines (themedata... damn S1 ugly crap)
add mailencoding userprop for UTF-8


To generate a diff of this commit:
cvs rdiff -r1.10 -r1.11 livejournal/bin/upgrading/base-data.sql
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/base-data.sql.diff?r1=1.10&r2=1.11

livejournal

Module Name: livejournal
Committed By: bradfitz
Date: Mon Apr 8 18:50:47 UTC 2002

Modified Files:
---------------
livejournal/bin/upgrading: update-db-general.pl

Log Message:
------------
fix index how it was supposed to be.


To generate a diff of this commit:
cvs rdiff -r1.62 -r1.63 livejournal/bin/upgrading/update-db-general.pl
http://cvs.livejournal.org/browse.cgi/livejournal/bin/upgrading/update-db-general.pl.diff?r1=1.62&r2=1.63