git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makes the promise method of Deferreds a bit more readable by not using the variable...
[jquery.git]
/
test
/
data
/
jsonp.php
diff --git
a/test/data/jsonp.php
b/test/data/jsonp.php
index
9ae1d84
..
6c13d72
100644
(file)
--- a/
test/data/jsonp.php
+++ b/
test/data/jsonp.php
@@
-1,6
+1,10
@@
<?php
error_reporting(0);
$callback = $_REQUEST['callback'];
<?php
error_reporting(0);
$callback = $_REQUEST['callback'];
+if ( ! $callback ) {
+ $callback = explode("?",end(explode("/",$_SERVER['REQUEST_URI'])));
+ $callback = $callback[0];
+}
$json = $_REQUEST['json'];
if($json) {
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
$json = $_REQUEST['json'];
if($json) {
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';