Permalink
Browse files

Fixed direct call to work with optional.htaccess

  • Loading branch information...
1 parent e1f7e25 commit 55efb2fcbfb74d33df6db40a166b6c4372149cd0 @keanpedersen keanpedersen committed Jun 21, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 dummy/dummy.php
View
@@ -373,8 +373,12 @@ function dummy($a, $internalcall = false) {
// Check for the presense of a direct call
// If that is the case, we call dummy() with the query part
if (basename(__FILE__) === basename($_SERVER['SCRIPT_FILENAME'])) {
+ $qs = $_SERVER['QUERY_STRING'];
+ if (getenv('DUMMYURL')) {
+ $qs = preg_replace('/^dummyurl=&/','', $qs);
+ }
ob_start();
- dummy($_SERVER['QUERY_STRING'], true);
+ dummy($qs, true);
$content = ob_get_contents();
ob_end_clean();
// figure out the image type

0 comments on commit 55efb2f

Please sign in to comment.