mirror of
https://github.com/rsyslog/loganalyzer.git
synced 2025-09-26 11:19:26 +02:00
Merged Patch from Issue 15
closes https://github.com/rsyslog/loganalyzer/issues/15
This commit is contained in:
parent
2612339487
commit
90dedbe2dc
@ -170,7 +170,14 @@ function CreateCurrentUrl()
|
||||
strpos($queries[$i], "skipone") === false
|
||||
)
|
||||
{
|
||||
$tmpvars = explode ("=", $queries[$i]);
|
||||
// --- Using regex to split query properly
|
||||
// Thanks to TK - 2016-01-20
|
||||
preg_match('/^([^=]*)=(.*)$/', $queries[$i], $m);
|
||||
if ( isset($m[1]) && isset($m[2]) )
|
||||
$tmpvars = array($m[1], $m[2]);
|
||||
// OLD Code $tmpvars = explode ("=", $queries[$i]);
|
||||
// ---
|
||||
|
||||
if ( isset($tmpvars[1]) ) // Only if value param is set!
|
||||
{
|
||||
// For forms!
|
||||
|
Loading…
x
Reference in New Issue
Block a user