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:
1dd7b61
)
FIX:NP_SecurityEnforcerの正規表現パターンの修正
author
shizuki
<shizuki@kinezumi.net>
Tue, 29 May 2012 07:03:12 +0000
(16:03 +0900)
committer
shizuki
<shizuki@kinezumi.net>
Tue, 29 May 2012 07:03:12 +0000
(16:03 +0900)
「\」と「#」が正しくエスケープされていなかったので修正
nucleus/plugins/NP_SecurityEnforcer.php
patch
|
blob
|
history
diff --git
a/nucleus/plugins/NP_SecurityEnforcer.php
b/nucleus/plugins/NP_SecurityEnforcer.php
index
61dd62a
..
bf1a027
100644
(file)
--- a/
nucleus/plugins/NP_SecurityEnforcer.php
+++ b/
nucleus/plugins/NP_SecurityEnforcer.php
@@
-277,6
+277,7
@@
class NP_SecurityEnforcer extends NucleusPlugin
{
$minlength = intval($minlength);
$complexity = intval($complexity);
+ $message = '';
if ( $minlength < 6 )
{
@@
-295,7
+296,7
@@
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;