Skip to content

Commit f8656bd

Browse files
committed
Some fix
1 parent 2af528d commit f8656bd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

event/listener.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,12 @@ public function seo_regression($event)
8989
// array(
9090
// 'pattern' => array( // Mandatory - Before and After pattern requires to locate the ID.
9191
// 'before' => 'post', // The after pattern is not mandatory, but recommended
92-
// 'after' => '.html', // Warning: The chars "/" needs to be escaped with "\"
92+
// 'after' => '\.html', // Warning: The chars "/" needs to be escaped with "\"
9393
// ),
9494
// 'replacement' => 'viewtopic.php?p=', // Mandatory - First part of the URI to generate the new one.
9595
// 'paginate' => array( // Optional - Array used for pagination
9696
// 'before' => '-' // If set, must have a start and end value
97-
// 'after' => '.html' // Pagination example: topic1234-60.html | forum-f1234/page60.html
97+
// 'after' => '\.html' // Pagination example: topic1234-60.html | forum-f1234/page60.html
9898
// ),
9999
// ),
100100
// ),
@@ -115,7 +115,7 @@ public function seo_regression($event)
115115
* http://forums.phpbb-fr.com/viewtopic_32090_s30.html (start 30)
116116
* http://forums.phpbb-fr.com/viewtopic_32215_pd0_poasc_s30.html (start 30 + ordering parameters, we will just ignore them…)
117117
*/
118-
array('pattern' => array('before' => 'viewtopic_', 'after' => '.html'), 'replacement' => 'viewtopic.php?t=', 'paginate' => array('before' => '(?:_.+)?_s', 'after' => '.html')),
118+
array('pattern' => array('before' => 'viewtopic_', 'after' => '\.html'), 'replacement' => 'viewtopic.php?t=', 'paginate' => array('before' => '(?:_.+)?_s', 'after' => '\.html')),
119119

120120
// phpBB3 versions
121121
array('pattern' => array('before' => 'topic', 'after' => '\.html'), 'replacement' => 'viewtopic.php?t=', 'paginate' => array('before' => '-', 'after' => '\.html')),

0 commit comments

Comments
 (0)