Page MenuHomePhabricator

patch1877.txt

Authored By
bzimport
Nov 21 2014, 8:21 PM
Size
708 B
Referenced Files
None
Subscribers
None

patch1877.txt

Index: EditPage.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/EditPage.php,v
retrieving revision 1.159
diff -u -r1.159 EditPage.php
--- EditPage.php 3 Apr 2005 07:01:29 -0000 1.159
+++ EditPage.php 18 Apr 2005 17:24:15 -0000
@@ -1025,6 +1025,10 @@
$toolbar.="document.writeln(\"<div id='toolbar'>\");\n";
foreach($toolarray as $tool) {
+
+ // remove linebreaks as they may brake the JavaScript code
+ $tool['sample'] = str_replace("\n", ' ' , $tool['sample']);
+ $tool['tip'] = str_replace("\n", ' ' , $tool['tip']);
$image=$wgStylePath.'/common/images/'.$tool['image'];
$open=$tool['open'];

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1492
Default Alt Text
patch1877.txt (708 B)

Event Timeline