Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
wfpl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
use preg instead of ereg
[wfpl.git]
/
session.php
diff --git
a/session.php
b/session.php
index
d75e07e
..
f31085f
100644
(file)
--- a/
session.php
+++ b/
session.php
@@
-149,7
+149,7
@@
function session_exists() {
return false;
}
- $session_key = ereg_replace('[^a-zA-Z0-9]', '', $_COOKIE['session_key']);
+ $session_key = preg_replace('|[^a-z0-9]|i', '', $_COOKIE['session_key']);
if(!strlen($session_key) == 16) {
return false;