Parser Error

Reported by tsangktsangk

A the moment, the parser converts " and "\n to "|. This leads into a problem when any attribute starts with a space (title=" abc") it would convert to (title="|abc") and break there.

Comments

tsangktsangk 1250323314|%e %b %Y, %H:%M %Z|agohover

Fixed. Added line, $pkfile=str_replace('="|','=" ',$pkfile); line 27.

<?php
$pkfile=str_replace('$cat$',$_GET["cat"],$pkfile);
$pkfile=str_replace('##### break',"#b;",$pkfile);
$pkfile=str_replace('" ','"|',$pkfile);
$pkfile=str_replace('"
','"|',$pkfile);
$pkfile=str_replace('="|','=" ',$pkfile); //<-- Line 27
$pkfile=str_replace('##;',"###b;",$pkfile);
$pkfile=str_replace('$wku$',$url,$pkfile);
$page=explode("#b;",$pkfile);
?>
Reply  |  Options
Unfold by tsangktsangk, 1250323314|%e %b %Y, %H:%M %Z|agohover
Add a New Comment

Edit | Tags | Files | Print

Use one of these tags to say what state the issue is in:

  • _open - a new, open issue.
  • _closed - issue has been closed.

Most recent

Educator Acocunt Upgrade (1253820187|%B %d, %Y) [open]
Cannot Rename/Move Attached File (1251477520|%B %d, %Y) []
Increase Size of "Copy-To" Window (1250808429|%B %d, %Y) []
Package 14: Error in syntax! (1250808221|%B %d, %Y) []
$wku$ error (1250382085|%B %d, %Y) []
Parser Error (1250323132|%B %d, %Y) []
Need more doc (1249543737|%B %d, %Y) []
Package module (1249542706|%B %d, %Y) []
Simplify syntax of modules (1249542523|%B %d, %Y) []
Error in Syntax warning (1249424256|%B %d, %Y) []

All open

Cannot Rename/Move Attached File (1251477520|%B %d, %Y) []
Increase Size of "Copy-To" Window (1250808429|%B %d, %Y) []
Package 14: Error in syntax! (1250808221|%B %d, %Y) []

Page tags: _closed
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License