Ticket #91 (closed defect: fixed)

Opened 9 years ago

Last modified 7 years ago

WikiEdit and Mod_rewrite

Reported by: dartar Owned by: unassigned
Priority: normal Milestone: 1.1.6.2
Component: 3rdparty Version: 1.1.6.1
Severity: normal Keywords: IIs windows
Cc:

Description

(reported from:  http://arek.c-consulting.co.id/ivan/wikka/wikka.php?wakka=WikiEditHack )

I don't use rewrite_mode since I'm using IIS as server, and I also put value for base_url for my wikka. Then I notice, by accident, that the Help button on WikiEdit does not point to the right page (FormattingRules). After checking the 3rdparty/plugins/wikiedit/wikiedit2.js, I found the problem. Here's what I've done to fix it:

  1. Create additional variable var rewrite_mode = false; right after var base_url = "";
  2. Change code to display the help button as follow

Original:

 this.addButton("customhtml",'<td><div style="font:12px Arial;text-decoration:underline; padding:4px;" id="hilfe_' + this.id + '" onmouseover=\'this.className="btn-hover";\' '
  + 'onmouseout=\'this.className="btn-";\' class="btn-" '
  + 'onclick="this.className=\'btn-pressed\';window.open(base_url+\'wikka.php?wakka=FormattingRules\');" '
  + ' title="Help on Wikka formatting">Help</a>'
  + '</div></td>');

Hack:

 this.addButton("customhtml",'<td><div class="btn-" id="hilfe_' + this.id + '" '
  + 'style="font:12px Arial;text-decoration:underline; padding:4px;" '
  + 'onmouseover=\'this.className="btn-hover";\' '
  + 'onmouseout=\'this.className="btn-";\' '
  + 'onclick="this.className=\'btn-pressed\'; '
  + 'window.open(\'' + base_url + (!rewrite_mode ? 'wikka.php?wakka=' : '') + 'FormattingRules\');" '
  + 'title="Help on Wikka formatting">Help</a>'
  + '</div></td>');

Change History

Changed 9 years ago by dartar

  • keywords IIs windows added

Changed 8 years ago by DotMG

  • status changed from new to closed
  • resolution set to fixed

Fixed in [85]

Changed 7 years ago by JavaWoman

  • status changed from reopened to closed
  • resolution set to fixed

Seems to have been reopened by spam removal; closing again...

Note: See TracTickets for help on using tickets.