viewer=code does not make any difference between any
specific content,
it simply print the document content which can contains wiki syntax,
velocity , groovy etc... a better name would be viewer=source
On Wed, Aug 26, 2009 at 18:36, Ajdin Brandic<aa6345(a)coventry.ac.uk> wrote:
Will it show Groovy as well as Velocity code?
Ajdin
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On Behalf
Of Marius Dumitru Florea
Sent: 26 August 2009 17:18
To: XWiki Users
Subject: Re: [xwiki-users] viewer=code
Ajdin Brandic wrote:
Lets say I'm doing some user input checking
to prevent spam. Since I
am using
myxwiki.org service and have no access to the back end code I
could have some hard coded sensitive info in my script (ie. u/p to
twitter or facebook).
Afaik, there is no view-code right so any user with view access is able
to see the code of the page.
Marius
Ajdin
-----Original Message-----
From: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org] On
Behalf Of Marius Dumitru Florea
Sent: 26 August 2009 16:07
To: XWiki Users
Subject: Re: [xwiki-users] viewer=code
Hi Ajdin,
Ajdin Brandic wrote:
> Is there an option (settings) to disable this (viewer=code) on a
>
site?
I don't know if there is a way to disable the
viewer=code from the UI
but I know you can prevent it by editing templates/view.vm around this
line:
#template("${viewer}.vm")
or by renaming templates/code.vm (but that leads to a blank page which
is not user friendly).
Btw, why do you want to hide the code?
Hope this helps,
Marius
Ajdin
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the
addressee only and may contain information that is confidential or
privileged. Unauthorised use is strictly prohibited. If you are not
the addressee, you should not read, copy, disclose or otherwise use
this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this
e-mail are those of the
author and do not necessarily represent those of Coventry University.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--------------------------------------------------------
NOTICE
This message and any files transmitted with it is intended for the addressee only and may
contain information that is confidential or privileged. Unauthorised use is strictly
prohibited. If you are not the addressee, you should not read, copy, disclose or otherwise
use this message, except for the purpose of delivery to the addressee.
Any views or opinions expressed within this e-mail are those of the author and do not
necessarily represent those of Coventry University.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users