@@ -592,7 +592,7 @@ discard block |
||
| 592 | 592 | |
| 593 | 593 | // ok ... redirect the get-data |
| 594 | 594 | $target = ($opt['page']['https']['force_login'] ? 'https' : $opt['page']['protocol']) |
| 595 | - . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
|
| 595 | + . '://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; |
|
| 596 | 596 | $this->redirect('login.php?target=' . urlencode($target)); |
| 597 | 597 | } |
| 598 | 598 | |
@@ -738,7 +738,7 @@ discard block |
||
| 738 | 738 | $this->_dvar_math_regexp = '(?:[\+\*\/\%]|(?:-(?!>)))'; |
| 739 | 739 | $this->_dvar_math_var_regexp = '[\$\w\.\+\-\*\/\%\d\>\[\]]'; |
| 740 | 740 | $this->_dvar_guts_regexp = '\w+(?:' . $this->_var_bracket_regexp |
| 741 | - . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?'; |
|
| 741 | + . ')*(?:\.\$?\w+(?:' . $this->_var_bracket_regexp . ')*)*(?:' . $this->_dvar_math_regexp . '(?:' . $this->_num_const_regexp . '|' . $this->_dvar_math_var_regexp . ')*)?'; |
|
| 742 | 742 | $this->_dvar_regexp = '\$' . $this->_dvar_guts_regexp; |
| 743 | 743 | |
| 744 | 744 | // matches config vars: |
@@ -752,7 +752,7 @@ discard block |
||
| 752 | 752 | |
| 753 | 753 | // matches all valid variables (no quotes, no modifiers) |
| 754 | 754 | $this->_avar_regexp = '(?:' . $this->_dvar_regexp . '|' |
| 755 | - . $this->_cvar_regexp . '|' . $this->_svar_regexp . ')'; |
|
| 755 | + . $this->_cvar_regexp . '|' . $this->_svar_regexp . ')'; |
|
| 756 | 756 | |
| 757 | 757 | // matches valid variable syntax: |
| 758 | 758 | // $foo |
@@ -776,10 +776,10 @@ discard block |
||
| 776 | 776 | // $foo->bar($foo->bar($blah,$foo,44,"foo",$foo[0].bar)) |
| 777 | 777 | $this->_obj_ext_regexp = '\->(?:\$?' . $this->_dvar_guts_regexp . ')'; |
| 778 | 778 | $this->_obj_restricted_param_regexp = '(?:' |
| 779 | - . '(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')(?:' . $this->_obj_ext_regexp . '(?:\((?:(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')' |
|
| 780 | - . '(?:\s*,\s*(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . '))*)?\))?)*)'; |
|
| 779 | + . '(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')(?:' . $this->_obj_ext_regexp . '(?:\((?:(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . ')' |
|
| 780 | + . '(?:\s*,\s*(?:' . $this->_var_regexp . '|' . $this->_num_const_regexp . '))*)?\))?)*)'; |
|
| 781 | 781 | $this->_obj_single_param_regexp = '(?:\w+|' . $this->_obj_restricted_param_regexp . '(?:\s*,\s*(?:(?:\w+|' |
| 782 | - . $this->_var_regexp . $this->_obj_restricted_param_regexp . ')))*)'; |
|
| 782 | + . $this->_var_regexp . $this->_obj_restricted_param_regexp . ')))*)'; |
|
| 783 | 783 | $this->_obj_params_regexp = '\((?:' . $this->_obj_single_param_regexp |
| 784 | 784 | . '(?:\s*,\s*' . $this->_obj_single_param_regexp . ')*)?\)'; |
| 785 | 785 | $this->_obj_start_regexp = '(?:' . $this->_dvar_regexp . '(?:' . $this->_obj_ext_regexp . ')+)'; |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | // |foo|bar |
| 795 | 795 | // |foo:$foo->bar |
| 796 | 796 | $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|' |
| 797 | - . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)'; |
|
| 797 | + . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)'; |
|
| 798 | 798 | |
| 799 | 799 | // matches valid function name: |
| 800 | 800 | // foo123 |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | // "text"|bar |
| 816 | 816 | // $foo->bar |
| 817 | 817 | $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|' |
| 818 | - . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 818 | + . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 819 | 819 | |
| 820 | 820 | // matches valid parenthesised function parameters: |
| 821 | 821 | // |
@@ -823,8 +823,8 @@ discard block |
||
| 823 | 823 | // $foo, $bar, "text" |
| 824 | 824 | // $foo|bar, "foo"|bar, $foo->bar($foo)|bar |
| 825 | 825 | $this->_parenth_param_regexp = '(?:\((?:\w+|' |
| 826 | - . $this->_param_regexp . '(?:\s*,\s*(?:(?:\w+|' |
|
| 827 | - . $this->_param_regexp . ')))*)?\))'; |
|
| 826 | + . $this->_param_regexp . '(?:\s*,\s*(?:(?:\w+|' |
|
| 827 | + . $this->_param_regexp . ')))*)?\))'; |
|
| 828 | 828 | |
| 829 | 829 | // matches valid function call: |
| 830 | 830 | // foo() |
@@ -52,7 +52,7 @@ discard block |
||
| 52 | 52 | |
| 53 | 53 | public $compile_id = null; |
| 54 | 54 | |
| 55 | - public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 55 | + public $cache_id = null; // This is a smarty caching ID, not a caches.cache_id. |
|
| 56 | 56 | |
| 57 | 57 | public string $title = ''; |
| 58 | 58 | |
@@ -492,7 +492,7 @@ discard block |
||
| 492 | 492 | |
| 493 | 493 | $args = func_get_args(); |
| 494 | 494 | unset($args[0]); |
| 495 | - for ($i = 1; isset($args[$i]); $i ++) { |
|
| 495 | + for ($i = 1; isset($args[$i]); $i++) { |
|
| 496 | 496 | $this->assign('p' . $i, $args[$i]); |
| 497 | 497 | } |
| 498 | 498 | |
@@ -794,7 +794,7 @@ discard block |
||
| 794 | 794 | // |foo|bar |
| 795 | 795 | // |foo:$foo->bar |
| 796 | 796 | $this->_mod_regexp = '(?:\|@?\w+(?::(?:\w+|' . $this->_num_const_regexp . '|' |
| 797 | - . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp .'))*)'; |
|
| 797 | + . $this->_obj_call_regexp . '|' . $this->_avar_regexp . '|' . $this->_qstr_regexp . '))*)'; |
|
| 798 | 798 | |
| 799 | 799 | // matches valid function name: |
| 800 | 800 | // foo123 |
@@ -815,7 +815,7 @@ discard block |
||
| 815 | 815 | // "text"|bar |
| 816 | 816 | // $foo->bar |
| 817 | 817 | $this->_param_regexp = '(?:\s*(?:' . $this->_obj_call_regexp . '|' |
| 818 | - . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 818 | + . $this->_var_regexp . '|' . $this->_num_const_regexp . '|\w+)(?>' . $this->_mod_regexp . '*)\s*)'; |
|
| 819 | 819 | |
| 820 | 820 | // matches valid parenthesised function parameters: |
| 821 | 821 | // |