note 61269 added to function.highlight-file

From: Date: Sun, 29 Jan 2006 22:52:19 +0000
Subject: note 61269 added to function.highlight-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-102698@lists.php.net to get a copy of this message
A couple side notes about my previous post regarding security: When I previewed the post, one of the backslashes in the regular expression disappeared, so I escaped it with another backslash, and then it worked in the preview. When the note posted, both backslashes appeared. Hopefully it will work in this update. The correct regular expression should be: (^/|\./) Please change it if you use the suggestion in the post below. Also, it would be a good idea to hide your valid_files.txt using .htaccess. The updated .htaccess is as follows: <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^(.+).phps$ index.php?f=$1 [L] </IfModule> <Files valid_files.txt> order allow,deny deny from all </Files> Sorry for the confusion... ---- Server IP: 216.194.113.175 Probable Submitter: 128.82.18.209 ---- Manual Page -- http://www.php.net/manual/en/function.highlight-file.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+61269 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+61269&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+61269&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#102698) next »