mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 19:30:21 +02:00
Check that argv is set before operating on it.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user