OSDN Git Service
(root)
/
nucleus-jp
/
nucleus-next.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
314ab19
)
FIX:NP_SecurityEnforcerのpreg_matchのデリミタを変更して「#」のエスケープを削除
author
shizuki
<shizuki@kinezumi.net>
Tue, 29 May 2012 11:59:58 +0000
(20:59 +0900)
committer
shizuki
<shizuki@kinezumi.net>
Tue, 29 May 2012 11:59:58 +0000
(20:59 +0900)
nucleus/plugins/NP_SecurityEnforcer.php
patch
|
blob
|
history
diff --git
a/nucleus/plugins/NP_SecurityEnforcer.php
b/nucleus/plugins/NP_SecurityEnforcer.php
index
bf1a027
..
915d1d5
100644
(file)
--- a/
nucleus/plugins/NP_SecurityEnforcer.php
+++ b/
nucleus/plugins/NP_SecurityEnforcer.php
@@
-296,14
+296,14
@@
class NP_SecurityEnforcer extends NucleusPlugin
$ucchars = '[A-Z]';
$lcchars = '[a-z]';
$numchars = '[0-9]';
- $ochars = '[
\
#-~!@\\$%^&*()_+=,.<>?:;|]';
+ $ochars = '[#-~!@\\$%^&*()_+=,.<>?:;|]';
$chartypes = array($ucchars, $lcchars, $numchars, $ochars);
$tot = array(0,0,0,0);
$i = 0;
foreach ( $chartypes as $value )
{
- $tot[$i] = preg_match("
#" . $value . "#
", $passwd);
+ $tot[$i] = preg_match("
/" . $value . "/
", $passwd);
$i = $i + 1;
}