Skip to content

Commit

Permalink
Merge pull request #58 from pothi/master
Browse files Browse the repository at this point in the history
Add a delimiter at the end of ban regex; add a trailing slash after site...
  • Loading branch information
pkhamre committed Nov 6, 2013
2 parents 1ebd953 + be86d18 commit 2a90e0a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wp-varnish.php
Expand Up @@ -335,7 +335,7 @@ function WPVarnishAdmin() {
<p class="submit"><input type="submit" class="button-primary" name="wpvarnish_admin" value="<?php echo __("Save Changes",'wp-varnish'); ?>" /></p>

<p>
<?php echo __('Purge a URL', 'wp-varnish'); ?>:<input class="text" type="text" name="wpvarnish_purge_url" value="<?php echo get_bloginfo('url'); ?>" />
<?php echo __('Purge a URL', 'wp-varnish'); ?>:<input class="text" type="text" name="wpvarnish_purge_url" value="<?php echo get_bloginfo('url'), '/'; ?>" />
<input type="submit" class="button-primary" name="wpvarnish_purge_url_submit" value="<?php echo __("Purge",'wp-varnish'); ?>" />
</p>

Expand Down Expand Up @@ -403,7 +403,7 @@ function WPVarnishPurgeObject($wpv_url) {
}
}
if ($wpv_vversion_optval == 3) {
$out = "ban req.url ~ ^$wpv_url && req.http.host == $wpv_host\n";
$out = "ban req.url ~ ^$wpv_url$ && req.http.host == $wpv_host\n";
} else {
$out = "purge req.url ~ ^$wpv_url && req.http.host == $wpv_host\n";
}
Expand Down

0 comments on commit 2a90e0a

Please sign in to comment.