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:
parent
04dc8a120a
commit
a2190f326b
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue