kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-10-28 01:20 pm

[dw-free] Implement v-gifts

[commit: http://hg.dwscoalition.org/dw-free/rev/9b600c7ae8fc]

http://bugs.dwscoalition.org/show_bug.cgi?id=215

Make sitekeywords case insensitive by lowercasing the argument.

Patch by [personal profile] kareila.

Files modified:
  • cgi-bin/ljlib.pl
--------------------------------------------------------------------------------
diff -r 5eb82813dd85 -r 9b600c7ae8fc cgi-bin/ljlib.pl
--- a/cgi-bin/ljlib.pl	Thu Oct 28 08:07:43 2010 -0500
+++ b/cgi-bin/ljlib.pl	Thu Oct 28 08:19:28 2010 -0500
@@ -1530,6 +1530,7 @@ sub get_sitekeyword_id {
     # setup the keyword for use
     return 0 unless $kw =~ /\S/;
     $kw = LJ::trim( LJ::text_trim( LJ::trim( $kw ), LJ::BMAX_SITEKEYWORD, LJ::CMAX_SITEKEYWORD ) );
+    $kw = LJ::utf8_lc( $kw );
 
     # get the keyword and insert it if necessary
     my $dbr = LJ::get_db_reader();
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org