]> git.nbdom.net Git - nb.git/commitdiff
etc/dbq/pub.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 8 Jan 2018 18:04:35 +0000 (18:04 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Mon, 8 Jan 2018 18:04:35 +0000 (18:04 +0000)
etc/dbq/pub.php

index 22c2d54bcea4ebc5710988c41735ebff441a02b0..164a88bf53d4e6086041e38c9f840d63ff9ad10e 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 require_once(realpath(dirname(__FILE__).'/../../lib/php/maps.php'));
 
-$html = ( self::php_cli() or self::client_content_type('text/plain') != 'text/html' ) ? true : false;
+$html = ( self::php_cli() or self::client_content_type('text/plain') != 'text/html' ) ? false : true;
 if ($html) {
        # CORS Cross scheme allowed
        header('Access-Control-Allow-Origin: *');