issue 7
(double-byte characters problem) commented on by mikiwoz
- duplicate of #8, I guess. try this:
find:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
replace with:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k, ENT_COMPAT, 'UTF-8').'"
value="'.htmlentities(preg_replace(array('/\x5C(?!\x5C)/u', '/\x5C\x5C/u'),
array('','\\'), $value), ENT_COMPAT, 'UTF-8').'" />';
cheers
mike
duplicate of #8, I guess. try this:
find:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
replace with:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k, ENT_COMPAT, 'UTF-8').'"
value="'.htmlentities(preg_replace(array('/\x5C(?!\x5C)/u', '/\x5C\x5C/u'),
array('','\\'), $value), ENT_COMPAT, 'UTF-8').'" />';
cheers
mike
Sep 30, 2009
issue 8
(Utf-8 charset problem) commented on by mikiwoz
- stripslashes() wil eat your UTF-8 data, utf8_decode() wil change everything that is
not easily translated to ISO-8859-2 to "?".
the below seems to work for a few people:
find:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
replace with:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k, ENT_COMPAT, 'UTF-8').'"
value="'.htmlentities(preg_replace(array('/\x5C(?!\x5C)/u', '/\x5C\x5C/u'),
array('','\\'), $value), ENT_COMPAT, 'UTF-8').'" />';
This uses preg_replace() to handle slashes (saving your UTF-8 goodness) and tells
htmlentities to watch for unicode chars.
cheers
mike
stripslashes() wil eat your UTF-8 data, utf8_decode() wil change everything that is
not easily translated to ISO-8859-2 to "?".
the below seems to work for a few people:
find:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
replace with:
----------------------------------------------------------------------------
foreach ($_POST as $k => $value) $html .= '<input type="hidden"
name="'.htmlentities($k, ENT_COMPAT, 'UTF-8').'"
value="'.htmlentities(preg_replace(array('/\x5C(?!\x5C)/u', '/\x5C\x5C/u'),
array('','\\'), $value), ENT_COMPAT, 'UTF-8').'" />';
This uses preg_replace() to handle slashes (saving your UTF-8 goodness) and tells
htmlentities to watch for unicode chars.
cheers
mike
Sep 29, 2009
issue 8
(Utf-8 charset problem) commented on by jeerry
- It didn't solve my problem. After I made this change, insted of "funny" characters,
all I see is question marks.
It didn't solve my problem. After I made this change, insted of "funny" characters,
all I see is question marks.
Aug 19, 2009
issue 10
(tantan spam reCAPTCHA fatal error) commented on by sirwilliamiv
- I think this can be closed. The solution seems to be not to install both reCAPTCHA
and TanTan Spam. TanTan Spam has a reCAPTCHA module in it, and thus installing both
does create the redundancy and thus fatal error I was running into. Just install
TanTan Spam.
I think this can be closed. The solution seems to be not to install both reCAPTCHA
and TanTan Spam. TanTan Spam has a reCAPTCHA module in it, and thus installing both
does create the redundancy and thus fatal error I was running into. Just install
TanTan Spam.
Aug 19, 2009
issue 10
(tantan spam reCAPTCHA fatal error) reported by sirwilliamiv
- Which plugin are you using?
TanTan Simple Spam Filter
What steps will reproduce the problem?
1. On a fresh version of the most recent WordPress install both the TanTan
Simple Spam Filter and the wp-reCAPTCHA plugin
2. Activate one of them
3. The other should generate a fatal error
What is the expected output? What do you see instead?
TanTan Spam then reCAPTCHA
Fatal error: Cannot redeclare recaptcha_wp_blog_domain() (previously
declared in /homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/wp-recaptcha/wp-recaptcha.php:592) in
/homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/tantan-spam/plugin.php on line 469
reCAPTCHA then TanTan Spam
Fatal error: Cannot redeclare recaptcha_wp_blog_domain() (previously
declared in /homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/tantan-spam/plugin.php:467) in
/homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-content/plugins/wp-
recaptcha/wp-recaptcha.php on line 594
What version of the product are you using? On what operating system?
TanTan Spam v0.6.2
WP-reCAPTCHA v2.9.6
Please provide any additional information below.
Which plugin are you using?
TanTan Simple Spam Filter
What steps will reproduce the problem?
1. On a fresh version of the most recent WordPress install both the TanTan
Simple Spam Filter and the wp-reCAPTCHA plugin
2. Activate one of them
3. The other should generate a fatal error
What is the expected output? What do you see instead?
TanTan Spam then reCAPTCHA
Fatal error: Cannot redeclare recaptcha_wp_blog_domain() (previously
declared in /homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/wp-recaptcha/wp-recaptcha.php:592) in
/homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/tantan-spam/plugin.php on line 469
reCAPTCHA then TanTan Spam
Fatal error: Cannot redeclare recaptcha_wp_blog_domain() (previously
declared in /homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-
content/plugins/tantan-spam/plugin.php:467) in
/homepages/13/d176034565/htdocs/worldwidewilly/blog/wp-content/plugins/wp-
recaptcha/wp-recaptcha.php on line 594
What version of the product are you using? On what operating system?
TanTan Spam v0.6.2
WP-reCAPTCHA v2.9.6
Please provide any additional information below.
Aug 03, 2009
issue 8
(Utf-8 charset problem) commented on by oruffin
- I found the solution to this problem if anyone care. Find the following line
foreach ($_POST as $k => $value) $html .= '<input type="hidden" name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
and replace it by
foreach ($_POST as $k => $value) $html .= '<input type="hidden" name="'.htmlentities($k).'"
value="'.htmlentities(utf8_decode(stripslashes($value))).'" />';
by doing an utf8_decode before the htmlentities, the accentuated characters are then properly propagated
I found the solution to this problem if anyone care. Find the following line
foreach ($_POST as $k => $value) $html .= '<input type="hidden" name="'.htmlentities($k).'"
value="'.htmlentities(stripslashes($value)).'" />';
and replace it by
foreach ($_POST as $k => $value) $html .= '<input type="hidden" name="'.htmlentities($k).'"
value="'.htmlentities(utf8_decode(stripslashes($value))).'" />';
by doing an utf8_decode before the htmlentities, the accentuated characters are then properly propagated
Apr 15, 2009
issue 9
(Logout problem with spam filter) reported by i...@j-b-t.com.au
- Which plugin are you using?
(just installed) tantan simple spam-filter 0.6.2 on WordPress 2.7.1.
What steps will reproduce the problem?
1. From backend trying to logout
What is the expected output? (to logout)
What do you see instead? "You are attempting to log out of [website-name]
articles...
Please try again."
What version of the product are you using? On what operating system?
On apache shared server
Please provide any additional information below.
Which plugin are you using?
(just installed) tantan simple spam-filter 0.6.2 on WordPress 2.7.1.
What steps will reproduce the problem?
1. From backend trying to logout
What is the expected output? (to logout)
What do you see instead? "You are attempting to log out of [website-name]
articles...
Please try again."
What version of the product are you using? On what operating system?
On apache shared server
Please provide any additional information below.
Mar 04, 2009
issue 8
(Utf-8 charset problem) reported by alessandro.ronchi
- Which plugin are you using?
tantan spam-filter
What steps will reproduce the problem?
1. add a comment with spam words
2. write correctly the captcha
What is the expected output? What do you see instead?
Instead of utf-8 charset like èéà I get other incorrect characters. It
seems the comment is passing through a non-utf8 string when passing into
the captcha comment.
Which plugin are you using?
tantan spam-filter
What steps will reproduce the problem?
1. add a comment with spam words
2. write correctly the captcha
What is the expected output? What do you see instead?
Instead of utf-8 charset like èéà I get other incorrect characters. It
seems the comment is passing through a non-utf8 string when passing into
the captcha comment.
Feb 15, 2009
r137
(add caching the thumbnail generation) committed by joetan54
- add caching the thumbnail generation
add caching the thumbnail generation
Feb 15, 2009
r136
(minimize theme) committed by joetan54
- minimize theme
minimize theme
Older
Dec 05, 2008
issue 6
(wordpress mu compatibility for spam-filter) commented on by the.webmaestro
- Still hoping to see some progress. One of my blogs gets a white screen when I
navigate to TanTan Simple Spam Filter after activation. That blog has a long list of
blacklisted words (~600), although I'm not certain that's the issue.
I'd love to see the 'similar comments' functionality in 0.6.1 in PRODUCTION... I'd
also like to resolve the issue I see with my one blog.
Still hoping to see some progress. One of my blogs gets a white screen when I
navigate to TanTan Simple Spam Filter after activation. That blog has a long list of
blacklisted words (~600), although I'm not certain that's the issue.
I'd love to see the 'similar comments' functionality in 0.6.1 in PRODUCTION... I'd
also like to resolve the issue I see with my one blog.
Nov 27, 2008
issue 7
(double-byte characters problem) reported by donaldabcdq
- When sumbited a comment in Chinese, and passed the reCAPTCHA, the comment's
content tuned into some unreadable characters. It looks like the plugin
can't recognize Chinese or the double-byte characters.
The Banned Words list also didn't process Chinese words properly, it didn't
work when Chinese words in the list.
When sumbited a comment in Chinese, and passed the reCAPTCHA, the comment's
content tuned into some unreadable characters. It looks like the plugin
can't recognize Chinese or the double-byte characters.
The Banned Words list also didn't process Chinese words properly, it didn't
work when Chinese words in the list.
Nov 13, 2008
issue 6
(wordpress mu compatibility for spam-filter) commented on by the.webmaestro
- Any ideas when you'll progress with this? Is there anything you need to make it go
more smoothly? This forum post might help:
Trying to Make WP-reCAPTCHA MU Compatible:
http://mu.wordpress.org/forums/topic.php?id=8488
Any ideas when you'll progress with this? Is there anything you need to make it go
more smoothly? This forum post might help:
Trying to Make WP-reCAPTCHA MU Compatible:
http://mu.wordpress.org/forums/topic.php?id=8488