Änderungen

Zur Navigation springen Zur Suche springen
K
→‎Code: +einfache version
Zeile 1: Zeile 1:  
=Code=
 
=Code=
 +
* Kompliziert:
 
<pre>
 
<pre>
 
fkt_read_browsers_query_string () {    # SENS: read and sanitize/convert query-string to useable vars  
 
fkt_read_browsers_query_string () {    # SENS: read and sanitize/convert query-string to useable vars  
Zeile 15: Zeile 16:  
                                                    
 
                                                    
 
         eval "$VARS"                                                                 
 
         eval "$VARS"                                                                 
 +
}
 +
* Einfach:
 +
fkt_eval_query_string () {
 +
        set ${QUERY_STRING%%[^%&=+-:@-_a-z~]*}
 +
        eval $(httpd -d "$QUERY_STRING" | sed -e 's/=/="/g' -e 's/&/"; /g ' -e 's/$/"/g')
 
}
 
}
 
</pre>
 
</pre>

Navigationsmenü