Allow links for http://exampleusername.dreamwidth.org/ (with trailing 
slash) to be sent via the "tell a friend" form.

        Patch by exor674. 

diffs (12 lines):

diff -r 520d2b04e91d -r 3c51f9b475ff htdocs/tools/tellafriend.bml
--- a/htdocs/tools/tellafriend.bml      Tue Dec 01 17:26:48 2009 +0000
+++ b/htdocs/tools/tellafriend.bml      Tue Dec 01 18:11:55 2009 +0000
@@ -73,7 +73,7 @@
      }
      # Check for external URLs
      foreach ( LJ::get_urls($POST{'body'}) ) {
-         if ($_ !~ m!^https?://([\w-]+\.)?$LJ::DOMAIN(/.+)?$!i) {
+         if ( $_ !~ m!^https?://([\w-]+\.)?$LJ::DOMAIN(/.*)?$!i ) {
              push @errors, BML::ml( ".error.forbiddenurl", { sitename => 
$LJ::SITENAME } );
          }
      }
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to