1
0
Fork 0
mirror of https://github.com/Oreolek/ifhub.club.git synced 2024-06-17 07:10:48 +03:00

fix patern for blocks

This commit is contained in:
Mzhelskiy Maxim 2010-04-17 15:28:42 +00:00
parent 04dc8a120a
commit a2190f326b

View file

@ -544,7 +544,7 @@ class LsViewer extends Module {
* Проверяем последовательно каждый regexp
*/
foreach((array)$aRule['path'] as $sRulePath) {
$sPattern = "~".str_replace(array('/','*'),array('\/','\w+'), $sRulePath)."~";
$sPattern = "~".str_replace(array('/','*'),array('\/','[\w\-]+'), $sRulePath)."~";
if(preg_match($sPattern, $sPath)) {
$bUse=true;
break 1;