Fullscreen
Loading...
 
Skip to main content

initialization of tiki_integrator_rules doesnt work

Status
Closed
Subject
initialization of tiki_integrator_rules doesnt work
Version
2.x
Category
  • Error
Feature
Database MySQL (MyISAM)
Database independence (Non-Mysql, ADOdb Postgres, Oracle, etc)
Integrator
Resolution status
Out of Date
Submitted by
snarlydwarf
Lastmod by
Kissaki
Rating
(0)
Description

Default values in tiki-integrator don't work:

{CODE}
INSERT INTO tiki_integrator_rules VALUES ('1','1','1','.*<body^>*?>(.*?)</body.*','\1','y','n','i','y','Extract code between <body> and </body> tags');
{CODE}

The 'i' for regex options should be 'ism' to not only ignore case, but process multiline and let '.' match newlines. As is, it only works if the original page is all on one line.

Likewise the "\1" needs an extra \, and should be '\\1'. mysql is eating the first one and thinking that it is just unmagicking the '1', which didn't need it.

I would fix this, but editing the .sql files scares me. 😊

Solution

Please upgrade to a recent version of tiki.
If the problem persists, please add a new tracker item.

Priority
25
Demonstrate Bug on Tiki 19+
Demonstrate Bug (older Tiki versions)
Ticket ID
1729
Created
Thursday 24 April, 2008 23:02:05 UTC
by Unknown
LastModif
Saturday 08 August, 2009 19:58:54 UTC


Show PHP error messages