Skip to content

Commit

Permalink
Work correctly with urls like http://doubleshlash//something
Browse files Browse the repository at this point in the history
Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
  • Loading branch information
nullie authored and mitsuhiko committed Mar 27, 2012
1 parent 8b56c32 commit f330882
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions werkzeug/debug/shared/debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ $(function() {
.click(function() {
sourceView.slideUp('fast');
});
$.get(document.location.pathname, {__debugger__: 'yes', cmd:
$.get('', {__debugger__: 'yes', cmd:
'source', frm: frameID, s: SECRET}, function(data) {
$('table', sourceView)
.replaceWith(data);
Expand Down Expand Up @@ -134,7 +134,7 @@ function openShell(consoleNode, target, frameID) {
var form = $('<form>&gt;&gt;&gt; </form>')
.submit(function() {
var cmd = command.val();
$.get(document.location.pathname, {
$.get('', {
__debugger__: 'yes', cmd: cmd, frm: frameID, s: SECRET}, function(data) {
var tmp = $('<div>').html(data);
$('span.extended', tmp).each(function() {
Expand Down Expand Up @@ -178,7 +178,7 @@ function openShell(consoleNode, target, frameID) {
return false;
}
});

return consoleNode.slideDown('fast', function() {
command.focus();
});
Expand Down

0 comments on commit f330882

Please sign in to comment.