You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by gr...@apache.org on 2004/01/16 19:41:33 UTC

cvs commit: cocoon-lenya/src/webapp/lenya/pubs/default/lenya/xslt/authoring create.xsl

gregor      2004/01/16 10:41:33

  Modified:    src/webapp/lenya/xslt/authoring create.xsl
               src/webapp/lenya/pubs/default/lenya/xslt/authoring
                        create.xsl
  Log:
  tighten things further so that you cannot create documents with stupid ids
  
  Revision  Changes    Path
  1.3       +7 -0      cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl
  
  Index: create.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/xslt/authoring/create.xsl,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- create.xsl	16 Jan 2004 15:03:24 -0000	1.2
  +++ create.xsl	16 Jan 2004 18:41:33 -0000	1.3
  @@ -37,6 +37,13 @@
   		result = false;
   	}
   	
  +	if (formField.value.match("[^a-zA-Z0-9_\\-]+"))
  +	{
  +		alert('Please enter a valid value for the "' + fieldLabel +'" field. A-Z, a-z, 0-9, _ or -');
  +		formField.focus();
  +		result = false;
  +	}
  +
   	return result;
   }
   
  
  
  
  1.6       +7 -0      cocoon-lenya/src/webapp/lenya/pubs/default/lenya/xslt/authoring/create.xsl
  
  Index: create.xsl
  ===================================================================
  RCS file: /home/cvs/cocoon-lenya/src/webapp/lenya/pubs/default/lenya/xslt/authoring/create.xsl,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- create.xsl	14 Jan 2004 00:37:21 -0000	1.5
  +++ create.xsl	16 Jan 2004 18:41:33 -0000	1.6
  @@ -39,6 +39,13 @@
   		result = false;
   	}
   	
  +	if (formField.value.match("[^a-zA-Z0-9_\\-]+"))
  +	{
  +		alert('Please enter a valid value for the "' + fieldLabel +'" field. A-Z, a-z, 0-9, _ or -');
  +		formField.focus();
  +		result = false;
  +	}
  +
   	return result;
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: lenya-cvs-unsubscribe@cocoon.apache.org
For additional commands, e-mail: lenya-cvs-help@cocoon.apache.org