mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-09 23:28:42 +00:00
Check that argv is set before operating on it.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
parent
b63569ac22
commit
5803c06765
@ -86,7 +86,7 @@ require 'path2class.func.php';
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
function htmlpurifier_parse_args(&$AC, $aliases) {
|
function htmlpurifier_parse_args(&$AC, $aliases) {
|
||||||
if (empty($_GET)) {
|
if (empty($_GET) && !empty($_SERVER['argv'])) {
|
||||||
array_shift($_SERVER['argv']);
|
array_shift($_SERVER['argv']);
|
||||||
$o = false;
|
$o = false;
|
||||||
$bool = false;
|
$bool = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user