Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#76 Allowing blank (space) booking descriptions

Minor
closed
MRBS (194)
5
2012-07-20
2003-06-04
Anonymous
No

Users are able to input a space in the booking
description. This makes MRBS display the booking on
the calendar as ''. An admin or the creator of the
booking cannot click the slot to edit the booking as
there is no hyperlink.

Discussion

  • Logged In: YES
    user_id=674184

    Fixed. As I don't know your mrbs version, find the line
    begining with a - (~lind 173) and change it to the + lines :

    Index: web/edit_entry.php

    =====================
    RCS file: /cvsroot/mrbs/mrbs/web/edit_entry.php,v
    retrieving revision 1.17
    diff -u -r1.17 edit_entry.php
    --- web/edit_entry.php 29 May 2003 07:25:57 -0000
    1.17
    +++ web/edit_entry.php 12 Aug 2003 15:46:34 -0000
    @@ -173,7 +173,8 @@
    // do a little form verifying
    function validate_and_submit ()
    {
    - if(document.forms["main"].name.value == "")
    + // null strings and spaces only strings not allowed
    + if(/(^$)|(^\s+$)/.test(document.forms
    ["main"].name.value))
    {
    alert ( "<?php echo $vocab
    ['you_have_not_entered'] . '\n' . $vocab['brief_description'] ?
    >");
    return false;

     


Anonymous


Cancel   Add attachments