Commit 22cb1d6c authored by Carsten  Rose's avatar Carsten Rose
Browse files

Sip: added some doc

Store: removed bad unescaping of _GET variables
parent 60452da4
......@@ -23,9 +23,9 @@ require_once(__DIR__ . '/../../qfq/exceptions/CodeException.php');
*/
class Sip {
// $_SESSION['fe_user_uid'] = <fe_user_uid>
// $_SESSION[<sip>] = <urlparam>
// $_SESSION[<urlparam>] = <sip>
// $_SESSION['fe_user_uid'] = <fe_user_uid>
// $_SESSION[$sip] => <urlparam> >> $_SESSION['badcaffee1234'] => 'form=Person&r=1&z=5678'
// $_SESSION[$urlparam] => <sip> >> $_SESSION['form=Person&r=1&z=5678'] => 'badcaffee1234'
private $phpUnit = null;
private $staticUniqId = false;
......@@ -55,13 +55,13 @@ class Sip {
}
/**
* @param string $queryString Possible variants:
* @param string $queryString Possible variants:
* * http://www.math.uzh.ch/index.php?a=1&s=4b3403665fea6&r=45&type=99&id=person
* * index.php?a=1&s=4b3403665fea6&r=45&type=99&id=person
* * ?a=1&s=4b3403665fea6&r=45&type=99&id=person
* * a=1&s=4b3403665fea6&r=45&type=99&id=person
*
* @param string $mode Possible values: RETURN_URL|RETURN_SIP
* @param string $mode Possible values: RETURN_URL|RETURN_SIP
* @return string
* * mode=RETURN_URL: return complete URL
* * mofr=RETURN_SIP: returns only the sip
......
......@@ -215,11 +215,6 @@ class Store {
// copy GET and POST and SERVER Parameter. Priority: SERVER, POST, GET
$arr = array_merge($_GET, $_POST, $_SERVER);
//TODO: CR - I do not understand why the parameter are escaped?! Remove the backslashes.
foreach ($arr as $key => $val) {
$arr[$key] = stripslashes($val);
}
self::setVarArray($arr, STORE_CLIENT, true);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment