Permalink
Browse files

Added crossdomain.xml file for XDR requests and made default error me…

…ssage syntax match JSList error
  • Loading branch information...
1 parent e927bd1 commit ac9c1e4328491c7cdd5b6e0b4de4ee40b3bb5a5c @davglass committed Dec 16, 2008
Showing with 9 additions and 3 deletions.
  1. +6 −0 crossdomain.xml
  2. +3 −3 index.php
View
@@ -0,0 +1,6 @@
+<?xml version="1.0"?>
+<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd">
+<cross-domain-policy>
+ <site-control permitted-cross-domain-policies="master-only" />
+ <allow-access-from domain="*" />
+</cross-domain-policy>
View
@@ -9,7 +9,6 @@
$rhino = $dir.'/lib/rhino/js.jar';
-$json = new stdclass();
if ($_POST['source']) {
$str = $_POST['source'];
@@ -25,8 +24,9 @@
unlink($tempName);
} else {
- $json->error = new stdclass();
- $json->error->message = 'No javascript to lint.';
+ $json = new stdclass();
+ $json->status = 'ERROR';
+ $json->errors = Array('No javascript to lint.');
echo(json_encode($json));
}

0 comments on commit ac9c1e4

Please sign in to comment.