[dw-free] Invite a Friend page does not allow links to hosted journals
[commit: http://hg.dwscoalition.org/dw-free/rev/3c51f9b475ff]
http://bugs.dwscoalition.org/show_bug.cgi?id=716
Allow links for http://exampleusername.dreamwidth.org/ (with trailing slash)
to be sent via the "tell a friend" form.
Patch by
exor674.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=716
Allow links for http://exampleusername.dreamwidth.org/ (with trailing slash)
to be sent via the "tell a friend" form.
Patch by
![[personal profile]](https://www.dreamwidth.org/img/silk/identity/user.png)
Files modified:
- htdocs/tools/tellafriend.bml
-------------------------------------------------------------------------------- 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 } ); } } --------------------------------------------------------------------------------