0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-09-19 10:45:18 +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:
Edward Z. Yang 2011-01-02 19:50:08 +00:00
parent b63569ac22
commit 5803c06765

View File

@ -86,7 +86,7 @@ require 'path2class.func.php';
*
*/
function htmlpurifier_parse_args(&$AC, $aliases) {
if (empty($_GET)) {
if (empty($_GET) && !empty($_SERVER['argv'])) {
array_shift($_SERVER['argv']);
$o = false;
$bool = false;