projects
/
pear
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4a71c66
)
strip s: from cookie
author
Alan
<alan@roojs.com>
Mon, 28 Nov 2022 03:36:49 +0000
(11:36 +0800)
committer
Alan
<alan@roojs.com>
Mon, 28 Nov 2022 03:36:49 +0000
(11:36 +0800)
HTML/FlexyFramework2.php
patch
|
blob
|
history
diff --git
a/HTML/FlexyFramework2.php
b/HTML/FlexyFramework2.php
index
a6e502e
..
e391358
100644
(file)
--- a/
HTML/FlexyFramework2.php
+++ b/
HTML/FlexyFramework2.php
@@
-388,7
+388,10
@@
class HTML_FlexyFramework2 {
}
$lang = isset($_COOKIE[$cfg['cookie']]) ? $_COOKIE[$cfg['cookie']] : $default;
-
+
+ //print_r($_COOKIE); print_R($cfg['cookie']);print_R($lang);exit;
+
+ $lang = preg_replace('/^s:/','', $lang); // for some reason roo's library prefixes values with s:
if (isset($_REQUEST[$cfg['param']])) {
$lang = $_REQUEST[$cfg['param']];
}