Dotclear

Ticket #1853 (closed defect: fixed)

Opened 10 years ago

Last modified 10 years ago

Bug within the antispam plugin when passing a site URL without a dot

Reported by: ChristopherC Owned by: team
Priority: normal Milestone: 2.7
Component: module:plugins Version: dev
Severity: normal Keywords: antispam
Cc:

Description

If an URL without a dot (such as  http://abc) is passed to the website input field when posting a comment, then the plugin antispam will complain with the below errors:

Notice: Undefined offset: -1 in /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php on line 53
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/public/lib.urlhandlers.php on line 471
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/public/lib.urlhandlers.php on line 483
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/libs/clearbricks/common/lib.http.php on line 269
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/libs/clearbricks/common/lib.http.php on line 271
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/libs/clearbricks/common/lib.http.php on line 271
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/libs/clearbricks/common/lib.http.php on line 271
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/public/lib.urlhandlers.php on line 108
Warning: Cannot modify header information - headers already sent by (output started at /Users/christopher/src/3rdparty/dotclear/trunk/plugins/antispam/filters/class.dc.filter.linkslookup.php:53) in /Users/christopher/src/3rdparty/dotclear/trunk/inc/libs/clearbricks/common/lib.http.php on line 294

Change History

comment:1 Changed 10 years ago by nikrou

  • Milestone changed from A definir to 2.7

comment:2 Changed 10 years ago by Dsls

  • Status changed from new to closed
  • Resolution set to fixed

(In [2712786c6df4]) Prevent 1-word domains warnings in links lookup antispam, fixes #1853

comment:3 Changed 10 years ago by franck

Donc à partir de maintenant, je peux plus commenter localement (genre avec  http://localhost/) ? Saynul !

comment:4 Changed 10 years ago by JcDenis

Si, au contraire, il ne sera jamais reconnu comme spam... Il faut retourner "null" si $i = 0 et non pas false...

comment:5 Changed 10 years ago by franck

  • Status changed from closed to reopened
  • Resolution fixed deleted

comment:6 Changed 10 years ago by franck

Quoi qu'il en soit, spa réglé.

comment:7 Changed 10 years ago by Dsls

  • Status changed from reopened to closed
  • Resolution set to fixed

(In [4ce965db4e7d]) Prevent 1-word domains warnings in links lookup antispam (bis), fixes #1853

Note: See TracTickets for help on using tickets.

Sites map