Skip to content

Commit 6c352d8

Browse files
committed
Include script filename in script_url variable.
This avoids issues with sending DELETE requests to the script directory.
1 parent f691308 commit 6c352d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/php/UploadHandler.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/*
3-
* jQuery File Upload Plugin PHP Class 8.3.2
3+
* jQuery File Upload Plugin PHP Class 8.3.3
44
* https://github.com/blueimp/jQuery-File-Upload
55
*
66
* Copyright 2010, Sebastian Tschan
@@ -43,7 +43,7 @@ class UploadHandler
4343
function __construct($options = null, $initialize = true, $error_messages = null) {
4444
$this->response = array();
4545
$this->options = array(
46-
'script_url' => $this->get_full_url().'/',
46+
'script_url' => $this->get_full_url().'/'.basename($this->get_server_var('SCRIPT_NAME')),
4747
'upload_dir' => dirname($this->get_server_var('SCRIPT_FILENAME')).'/files/',
4848
'upload_url' => $this->get_full_url().'/files/',
4949
'user_dirs' => false,

0 commit comments

Comments
 (0)