Remove resize at document ready that was causing tiny pages in 2up mode on IE7. ...
[bookreader.git] / BookReaderIA / datanode / BookReaderGetTextWrapper.php
index 6e70134..8e3fd25 100644 (file)
@@ -21,9 +21,10 @@ This file is part of BookReader.
     The BookReader source is hosted at http://github.com/openlibrary/bookreader/
 */
 
-$env = 'LD_LIBRARY_PATH=/petabox/sw/lib/lxml/lib PYTHONPATH=/petabox/sw/lib/lxml/lib/python2.5/site-packages:$PYTHONPATH';
-$path=$_GET['path'];
-$page=$_GET['page'];
-passthru("$env python BookReaderGetText.py $path $page");
-
-?>
\ No newline at end of file
+//$env = 'LD_LIBRARY_PATH=/petabox/sw/lib/lxml/lib PYTHONPATH=/petabox/sw/lib/lxml/lib/python2.5/site-packages:$PYTHONPATH';
+$path     = escapeshellarg($_GET['path']);
+$page     = escapeshellarg($_GET['page']);
+$callback = escapeshellarg($_GET['callback']);
+header('Content-Type: application/javascript');
+passthru("python BookReaderGetText.py $path $page $callback");
+?>