#50254 [NEW]: SPAM detector trips up on your own PHP.net site as URL
| From: | daevid at daevid dot com | Date: | Sat, 21 Nov 2009 01:36:51 +0000 |
| Subject: | #50254 [NEW]: SPAM detector trips up on your own PHP.net site as URL | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-6581@lists.php.net to get a copy of this message | ||
From: daevid at daevid dot com
Operating system:
PHP version: Irrelevant
PHP Bug Type: Website problem
Bug description: SPAM detector trips up on your own PHP.net site as URL
Description:
------------
I tried to post this note in the include() page:
---
see 'reproduce code' below on this form.
---
I tried to post this note to here:
http://us2.php.net/manual/add-note.php
But the stupid-ass form says:
"Your note contains a prohibited (usually SPAM) word. Please remove it and
try again."
WTF!? It doesn't even TELL me what f'n word is the problem. Seriously? It
already asked me the stupid math question and now this
B.S.?
Then, I had to laugh because I removed the text:
http://php.net/manual/en/function.include.php
http://php.net/manual/en/function.require.php
http://php.net/manual/en/function.require-once.php
http://php.net/manual/en/function.include-once.php
And the submit note worked. LOL. So apparently one of those words in there
is considered SPAM by PHP's own web form. Ha! Suckas.
Reproduce code:
---------------
Well now, I am confused because these pages:
http://php.net/manual/en/function.include.php
http://php.net/manual/en/function.require.php
http://php.net/manual/en/function.require-once.php
http://php.net/manual/en/function.include-once.php
All show them as functions:
Include(), require(), require_once(), include_once()
Yet ALL of the examples show the PEAR way:
http://pear.php.net/manual/en/standards.including.php
"Note: include_once and require_once are statements, not functions.
Parentheses should not surround the subject filename."
include_once "a.php";
To change all require_once('foo.php'); to require_once 'foo.php' execute
this:
cd /var/www/
find . -name '*.php' -print | xargs egrep -l \
'require_once\s*(\(.*\));'\ | xargs sed -i.sedorig -e \
's/require_once\s*(\(.*\));/require_once \1;/'
(thanks to Robert Hajime Lanning for that)
Then to remove all the ".php.sedorig" backup files execute this:
find . -name "*.php.sedorig" -type f -exec rm -rf {} \;
Expected result:
----------------
I expected the form to not be so stupid and just let me post. You already
ask me for a dumb math question so why the added check. And at the VERY
least, tell me what word you consider SPAM so I can remove it. duh. Are you
new to writing web pages/forms? Help the user out man. If I've taken the
time to post a useful note, then work with me, not against me.
This is related to 45055.
I agree that the resulting error message needs to be more
helpful/descriptive. If its' because of too many links, then damnit tell me
that. If it is some word that is offensive, then tell me that too! UGH.
I posted this again to show an example of what I'd consider a good note
and that there aren't too many links. They are referencing relevant PHP
pages even.
Actual result:
--------------
fail.
--
Edit bug report at http://bugs.php.net/?id=50254&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50254&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50254&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50254&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=50254&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50254&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=50254&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=50254&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=50254&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=50254&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=50254&r=support
Expected behavior: http://bugs.php.net/fix.php?id=50254&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=50254&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=50254&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=50254&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50254&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=50254&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=50254&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=50254&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=50254&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=50254&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=50254&r=mysqlcfg