com web/bugs: Add the ability for logged in users to spam. Like, adding a bunch of links. Closes PHP bug #48126: include/functions.php
| From: | Philip Olson | Date: | Thu, 07 Jun 2012 23:15:02 +0000 |
| Subject: | com web/bugs: Add the ability for logged in users to spam. Like, adding a bunch of links. Closes PHP bug #48126: include/functions.php | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-13643@lists.php.net to get a copy of this message | ||
Commit: d236d4c3bf2d3bb30cdfc0e3a1cce52e5c3f6e39
Author: Philip Olson <philip@php.net> Thu, 7 Jun 2012 16:15:02 -0700
Parents: bc186817cf176d4c95489655126bd8fb3c6f9dd4
Branches: master
Link: http://git.php.net/?p=web/bugs.git;a=commitdiff;h=d236d4c3bf2d3bb30cdfc0e3a1cce52e5c3f6e39
Log:
Add the ability for logged in users to spam. Like, adding a bunch of links. Closes PHP bug #48126
Bugs:
48126
Changed paths:
M include/functions.php
Diff:
diff --git a/include/functions.php b/include/functions.php
index 6272262..2b6e027 100644
--- a/include/functions.php
+++ b/include/functions.php
@@ -256,6 +256,11 @@ function get_pseudo_packages ($project, $return_disabled = true)
/* Primitive check for SPAM. Add more later. */
function is_spam($string)
{
+ // @php.net users are given permission to spam... we gotta eat! See also bug #48126
+ if (!empty($GLOBALS['auth_user']->handle)) {
+ return false;
+ }
+
if (substr_count(strtolower($string), 'http://') > 5) {
return true;
}