<div dir="ltr"><div>That's worth being aware of - thanks.  <br>(In my case the whole site is protected by an edit password, so I guess that's not an issue at the moment.)<br></div><br>James<br><div><div><div class="gmail_extra"><br><br><div class="gmail_quote">On 1 July 2015 at 00:27, Randy Brown <span dir="ltr"><<a href="mailto:randy@brownragfilms.com" target="_blank">randy@brownragfilms.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Beware: An edit password will not protect everything on a readable page that is hidden by (:if false:). This is because an unauthorized user can use (:include:) on another page with the lines= option to circumvent your conditional.<br>
<br>
If you need something to be well protected, put it on a separate read protected page. If you need to see it sometimes on an unprotected page depending on a conditional, you can include it from the protected  page - it will only be visible to users who can read both pages.<br>
<span class="HOEnZb"><font color="#888888"><br>
Randy<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On 2015-06-28 22:53, JamesM wrote:<br>
> I've been using pmwiki for a few years, and have only just discovered<br>
> the<br>
> &action=source thing.<br>
> Unfortunately, this shows the entire source, including things written<br>
> after<br>
> (:if false:), which I use for hiding information (it's on a lecture<br>
> course<br>
> website, and I have some stuff hidden from student view).<br>
><br>
> So, how can I disable &action=source?<br>
> Or better, password protect it.<br>
><br>
> I tried putting<br>
> $DefaultPasswords['source']=' .... ';<br>
> into config.php.  This works for ['admin'] and ['edit'] but seems to<br>
> make<br>
> no difference for ['source'].<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</div></div></blockquote></div><br></div></div></div></div>