Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1974
patch1877.txt
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
•
bzimport
Nov 21 2014, 8:21 PM
2014-11-21 20:21:22 (UTC+0)
Size
708 B
Referenced Files
None
Subscribers
None
patch1877.txt
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1492
Default Alt Text
patch1877.txt (708 B)
Attached To
Mode
T3877: JavaScript error in page editing in some localizations
Attached
Detach File
Event Timeline
Log In to Comment