Project

General

Profile

Actions

Bug #1903

closed

Forbidden words are case sensitive and should be case-insensitive

Added by krileon over 14 years ago. Updated about 14 years ago.

Status:
Closed
Priority:
Low
Assignee:
Target version:
Start date:
27 July 2010
Due date:
% Done:

100%

Estimated time:
0:30 h

Description

When using forbidden words on various fields it is case sensitive making it extremely difficult to properly protect even a single word.

http://www.joomlapolis.com/component/option,com_joomlaboard/Itemid,38/func,view/catid,112/id,138719/#138719


Files

1903.patch (981 Bytes) 1903.patch krileon, 18 August 2010 17:42
Actions #1

Updated by krileon over 14 years ago

  • Subject changed from forbidden words are case sensative to forbidden words are case sensitive
Actions #2

Updated by krileon over 14 years ago

Instead of using str_replace have changed to preg_replace with i flag. First looped through to escape forbidden words in respect to the delimiter / with preg_quote then imploded array to a string with |. Forbidden words are now no longer case insensitive. It's possible to easily and simply use str_ireplace, but it is not PHP4 compliant breaking backwards compatibility.

Actions #3

Updated by krileon about 14 years ago

  • Status changed from New to Resolved
Actions #4

Updated by beat about 14 years ago

  • Subject changed from forbidden words are case sensitive to Forbidden words are case sensitive and should be case-insensitive
  • Status changed from Resolved to Closed
  • % Done changed from 80 to 100
  • Estimated time set to 0:30 h

Fixed in r1259 .

Actions

Also available in: Atom PDF