We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 637bab3 commit 5309338Copy full SHA for 5309338
interface/lib/classes/tform.inc.php
@@ -115,11 +115,18 @@ function getNextTab() {
115
// Show the same tab again in case of an error
116
$active_tab = $_SESSION["s"]["form"]["tab"];
117
}
118
+
119
+ if(!preg_match('/^[a-zA-Z0-9_]{0,50}$/',$active_tab)) {
120
+ die('Invalid next tab name.');
121
+ }
122
123
return $active_tab;
124
125
126
function getCurrentTab() {
127
+ if(!preg_match('/^[a-zA-Z0-9_]{0,50}$/',$_SESSION["s"]["form"]["tab"])) {
128
+ die('Invalid current tab name.');
129
130
return $_SESSION["s"]["form"]["tab"];
131
132
0 commit comments