[geeklog-cvs] geeklog-1.3/system lib-plugins.php,1.51,1.52
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Wed Dec 29 05:51:28 EST 2004
Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv1061/system
Modified Files:
lib-plugins.php
Log Message:
Fixed handling of autotags that started with the same substring (reported by Dr. Shakagee)
Index: lib-plugins.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-plugins.php,v
retrieving revision 1.51
retrieving revision 1.52
diff -C2 -d -r1.51 -r1.52
*** lib-plugins.php 27 Nov 2004 14:06:07 -0000 1.51
--- lib-plugins.php 29 Dec 2004 10:51:25 -0000 1.52
***************
*** 990,999 ****
$tags = array ();
foreach ($autolinkModules as $moduletag => $module) {
! $autotag_prefix = '['. $moduletag;
$offset = $prev_offset = 0;
$strlen = strlen ($content);
while ($offset < $strlen) {
$start_pos = strpos (strtolower ($content), $autotag_prefix,
! $offset );
if ($start_pos !== FALSE) {
$end_pos = strpos (strtolower ($content), ']', $start_pos);
--- 990,999 ----
$tags = array ();
foreach ($autolinkModules as $moduletag => $module) {
! $autotag_prefix = '['. $moduletag . ':';
$offset = $prev_offset = 0;
$strlen = strlen ($content);
while ($offset < $strlen) {
$start_pos = strpos (strtolower ($content), $autotag_prefix,
! $offset);
if ($start_pos !== FALSE) {
$end_pos = strpos (strtolower ($content), ']', $start_pos);
More information about the geeklog-cvs
mailing list