Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cookie.py produces invalid code #41483

Closed
sdahlbac mannequin opened this issue Jan 25, 2005 · 2 comments
Closed

Cookie.py produces invalid code #41483

sdahlbac mannequin opened this issue Jan 25, 2005 · 2 comments
Assignees
Labels
extension-modules C modules in the Modules dir

Comments

@sdahlbac
Copy link
Mannequin

sdahlbac mannequin commented Jan 25, 2005

BPO 1108948
Nosy @birkenfeld, @birkenfeld
Files
  • Cookie.patch.py: new version of js_output function
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = 'https://github.com/birkenfeld'
    closed_at = <Date 2005-06-26.21:03:38.000>
    created_at = <Date 2005-01-25.09:04:05.000>
    labels = ['extension-modules']
    title = 'Cookie.py produces invalid code'
    updated_at = <Date 2005-06-26.21:03:38.000>
    user = 'https://bugs.python.org/sdahlbac'

    bugs.python.org fields:

    activity = <Date 2005-06-26.21:03:38.000>
    actor = 'georg.brandl'
    assignee = 'georg.brandl'
    closed = True
    closed_date = None
    closer = None
    components = ['Extension Modules']
    creation = <Date 2005-01-25.09:04:05.000>
    creator = 'sdahlbac'
    dependencies = []
    files = ['1564']
    hgrepos = []
    issue_num = 1108948
    keywords = []
    message_count = 2.0
    messages = ['24029', '24030']
    nosy_count = 3.0
    nosy_names = ['georg.brandl', 'georg.brandl', 'sdahlbac']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = None
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue1108948'
    versions = ['Python 2.3']

    @sdahlbac
    Copy link
    Mannequin Author

    sdahlbac mannequin commented Jan 25, 2005

    The code in js_output in the Morsel class in Cookie.py
    produces invalid code, the scripting language should be
    specified by mimetype and not by language as per
    http://www.w3.org/TR/html401/interact/scripts.html

    also, the javascript line is missing an ending semi-colon

    attached a "patch" (new version of the function in
    question)

    present at least in 2.3 but still broken in current cvs

    A related matter: the existing documentation is poor,
    only after a substantial amount of code reading and
    googling I found out how to set attributes such as
    expires and path.

    @sdahlbac sdahlbac mannequin closed this as completed Jan 25, 2005
    @sdahlbac sdahlbac mannequin assigned birkenfeld Jan 25, 2005
    @sdahlbac sdahlbac mannequin added the extension-modules C modules in the Modules dir label Jan 25, 2005
    @sdahlbac sdahlbac mannequin closed this as completed Jan 25, 2005
    @sdahlbac sdahlbac mannequin assigned birkenfeld Jan 25, 2005
    @sdahlbac sdahlbac mannequin added the extension-modules C modules in the Modules dir label Jan 25, 2005
    @birkenfeld
    Copy link
    Member

    Logged In: YES
    user_id=1188172

    Thanks for the report, fixed as of Lib/Cookie.py r1.18.

    I do not backport this as some code might rely on the
    language HTML attribute.

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 9, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    extension-modules C modules in the Modules dir
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant