WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#3271 closed defect (bug) (worksforme)

Plugin title / description / etc. parsing error

Reported by: Viper007Bond Owned by: anonymous
Priority: low Milestone:
Component: Administration Version: 2.0.4
Severity: trivial Keywords: needs-patch
Cc:

Description

A client sent me this plugin. I have no f'ing clue why it shows up so horribly wrong in /wp-admin/plugins.php, but we should account for whatever went wrong.

Attachments (2)

wp-cats.php (10.1 KB) - added by Viper007Bond 7 years ago.
wp-cats-0.13.php (10.1 KB) - added by AndyBeard 7 years ago.
Version downloaded correctly

Download all attachments as: .zip

Change History (13)

Viper007Bond7 years ago

comment:1 Viper007Bond7 years ago

Based on how Trac shows the attachment, my guess is that they are using the wrong type of line break (two byte vs. one byte or whatever).

comment:2 Viper007Bond7 years ago

Mmm, the plugin is not available for download on their site. Instead, you copy/paste the source of the plugin into a file. Seems their server is serving up a bad copy or whatever which results in the wrong type of line breaks, at least under Windows, or so I think.

comment:3 follow-up: Sewar7 years ago

See #3269 also.

comment:4 in reply to: ↑ 3 Viper007Bond7 years ago

Replying to Sewar:

See #3269 also.

No, not related. The plugin shows up just fine, it just shows garbage (the contents of the plugin).

comment:5 robmiller7 years ago

Try converting the line breaks, then—most text editors will allow you to do this.

comment:6 JeremyVisser7 years ago

I opened the file in a hex editor and can see that all the linebreaks simply consist of a 0D, or carriage-return. This is "Mac format". Unix uses just a line-feed as a linebreak, and Windows uses a carriage-return followed by a line-feed.

I guess the parser should be made to recognise Mac-style linebreaks. By the way, does Mac OS X now use Unix-style linebreaks? I would hazard a guess that that would be true.

AndyBeard7 years ago

Version downloaded correctly

comment:7 AndyBeard7 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

I just attached a version of the same plugin that was downloaded rather than viewing the page and copy/paste. If you copy and paste code in a browser, all kinds of horrible things happen. Not just line feeds, but things like quotes get very messed up.
The new version displays correctly in trak, and was tested in 2.0.4. It should work perfectly in 2.0.5 as well.
Wordpress can't reasonably be expected to fix all code that is broken due to character set conversion and browser display problems.

comment:8 Viper007Bond7 years ago

Correct, right-click -> "save link as" does indeed work. Still, is it really that hard to also look for a 0D when looking for the end of the line? Not hard.

comment:9 Viper007Bond7 years ago

  • Milestone changed from 2.0.5 to 2.1
  • Priority changed from normal to low
  • Severity changed from major to trivial

comment:10 foolswisdom7 years ago

Viper, I am guessing you meant to reopen this.

comment:11 Nazgul6 years ago

  • Milestone 2.1 deleted
Note: See TracTickets for help on using tickets.