Menu

#369 Bad JS in edit/submitnewpub.cgi

v1.0 (example)
closed-fixed
None
5
2013-10-22
2013-10-20
Ahasuerus
No

When submitting a "New Pub" form, the resulting edit/submitnewpub.cgi page contains the following bogus JavaScript statement:

onload="document.getElementById('pub_title').focus();"

within the "body" tag. This happens in function PrintPreSearch in edit/isfdblib.py where the code checks "if (title[0:4] == 'New ') or (title == 'Clone Publication'):". The code needs to be corrected not to emit this JS snippet when executed on the post-submit page.

Discussion

  • Ahasuerus

    Ahasuerus - 2013-10-22

    Fixed in edit/isfdblib.py 1.41 . Installed in r2013-141 on 2013-10-21.

     
  • Ahasuerus

    Ahasuerus - 2013-10-22
    • status: open --> closed-fixed
     
  • Ahasuerus

    Ahasuerus - 2013-10-22

    Closing.

     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB