[pmwiki-devel] Bug in sectionedit

marc gmane at auxbuss.com
Sat Jan 13 12:47:58 CST 2007


v2.1.3 line 241

  /*Set style to remove the space before the headings*/
  if (!$SectionEditWithoutHeaders) 
    $p = preg_replace('/((?m:^)|(?<=:\)))((!{1,'.
$SectionEditAutoDepth.'})([^!]))/','$1$3%block margin-top=0px%$4',$p);

This line is being actioned on, say, HTML headers, when the user does 
not have edit privileges, and thus overrides 'margin-top' for those 
elements.

An easy way to see it is to set 'margin-top=100px' in the above line and 
load an appropriate page without edit privs.

-- 
Cheers,
Marc




More information about the pmwiki-devel mailing list